Implemented JSON parsing.