Parse the JSON data returned