function json_decode($content, $assoc = false) { if ($assoc) { $json = new ServicesJSON(SERVICES_JSON_LOOSE_TYPE); } else { $json = new ServicesJSON(); } return $json->decode($content); }