Reorganized the Google JSON parsing code