Made minor fixes to JSON parsing for hosted API