Add JSON test helper to dry up the JSON parsing.