Fixed JSON parsing.