parse JSON
Add test for GET request