Json parser implemented

Bug fix to previous version