Add code for parsing data returned in JSON format