Fixed the JSON parsing.