Parsing the JSON response in both post and get.