new JSON parser, minor bug-fixed