Implemented majority of JSON parser.