Fixing numerous JSON syntax bugs