changed default API response format to JSON