add a json parser to help write tests