Fix JSON parsing.