public function transformJsonResponse($json)
    {
        // In a REST-API call, the first five chars are )]}'\n
        // to decode it, we have to strip it
        // See https://review.typo3.org/Documentation/rest-api.html#output
        if (substr($json, 0, 4) === ')]}\'') {
            $json = substr($json, 5);
        }

        return json_decode($json, true);
    }
public function transformJsonResponse($json)
    {
        // In a REST-API call, the first five chars are )]}'\n
        // to decode it, we have to strip it
        // See https://review.typo3.org/Documentation/rest-api.html#output
        if (substr($json, 0, 4) === ')]}\'') {
            $json = substr($json, 5);
        }

        return json_decode($json, true);
    }
public function transformJsonResponse ( $ json ) { // In a REST-API call, the first five chars are )]}'\n // to decode it, we have to strip it // See https://review.typo3.org/Documentation/rest-api.html#output if ( substr ( $ json , 0 , 4 ) === ')]}\'' ) { $ json = substr ( $ json , 5 ) ; } return json_decode ( $ json , true ) ; }
Transforms a JSON string into an array.
Regular, the json is the content from the response.

@param string $json The json string
@return array|null
Transforms a JSON string into an array . Regular the json is the content from the response .