Fix a bug about JSON parsing.