First version of the json parser.