Test

$data:

Array ( [headers] => Array ( [Content-type] => application/json ) [apikey] => mkhsDrW2 [objectType] => animals [objectAction] => publicSearch [search] => Array ( [calcFoundRows] => Yes [resultStart] => 0 [resultLimit] => 20 [resultSort] => animalID [fields] => Array ( [0] => animalID [1] => animalOrgID [2] => animalName [3] => animalSpecies [4] => animalBreed [5] => animalThumbnailUrl ) [filters] => Array ( [0] => Array ( [fieldName] => animalStatus [operation] => equals [criteria] => Available ) ) ) )

json_encode($data):

{"headers":{"Content-type":"application\/json"},"apikey":"mkhsDrW2","objectType":"animals","objectAction":"publicSearch","search":{"calcFoundRows":"Yes","resultStart":0,"resultLimit":20,"resultSort":"animalID","fields":["animalID","animalOrgID","animalName","animalSpecies","animalBreed","animalThumbnailUrl"],"filters":[{"fieldName":"animalStatus","operation":"equals","criteria":"Available"}]}}

$results:

Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Thu, 27 Jul 2017 02:36:01 GMT [server] => Apache/2.4.6 (CentOS) [access-control-allow-origin] => * [access-control-allow-methods] => POST, GET, DELETE, PATCH, OPTIONS [access-control-allow-headers] => Authorization, Origin, Content-Type, Accept [access-control-expose-headers] => Authorization [cache-control] => no-cache, must-revalidate [expires] => Mon, 26 Jul 1997 05:00:00 GMT [content-length] => 88 [content-type] => application/json ) ) [body] => {"status":"error","message":"Unable to read your data; it might not be in json format."} [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [response:protected] => Requests_Response Object ( [body] => {"status":"error","message":"Unable to read your data; it might not be in json format."} [raw] => HTTP/1.1 200 OK Date: Thu, 27 Jul 2017 02:36:01 GMT Server: Apache/2.4.6 (CentOS) Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST, GET, DELETE, PATCH, OPTIONS Access-Control-Allow-Headers: Authorization, Origin, Content-Type, Accept Access-Control-Expose-Headers: Authorization Cache-Control: no-cache, must-revalidate Expires: Mon, 26 Jul 1997 05:00:00 GMT Content-Length: 88 Connection: close Content-Type: application/json {"status":"error","message":"Unable to read your data; it might not be in json format."} [headers] => Requests_Response_Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Thu, 27 Jul 2017 02:36:01 GMT ) [server] => Array ( [0] => Apache/2.4.6 (CentOS) ) [access-control-allow-origin] => Array ( [0] => * ) [access-control-allow-methods] => Array ( [0] => POST, GET, DELETE, PATCH, OPTIONS ) [access-control-allow-headers] => Array ( [0] => Authorization, Origin, Content-Type, Accept ) [access-control-expose-headers] => Array ( [0] => Authorization ) [cache-control] => Array ( [0] => no-cache, must-revalidate ) [expires] => Array ( [0] => Mon, 26 Jul 1997 05:00:00 GMT ) [content-length] => Array ( [0] => 88 ) [content-type] => Array ( [0] => application/json ) ) ) [status_code] => 200 [protocol_version] => 1.1 [success] => 1 [redirects] => 0 [url] => Requests_IRI Object ( [scheme:protected] => https [iuserinfo:protected] => [ihost:protected] => api.rescuegroups.org [port:protected] => [ipath:protected] => /http/v2.json [iquery:protected] => [ifragment:protected] => [normalization:protected] => Array ( [acap] => Array ( [port] => 674 ) [dict] => Array ( [port] => 2628 ) [file] => Array ( [ihost] => localhost ) [http] => Array ( [port] => 80 ) [https] => Array ( [port] => 443 ) ) ) [history] => Array ( ) [cookies] => Requests_Cookie_Jar Object ( [cookies:protected] => Array ( ) ) ) [filename:protected] => [data] => [headers] => [status] => ) )