Flubbed the json parser function definition