add in JSON parsing code