Implement JSON parsing for API calls