A mostly conforming JSON parser.