public static function getResultsFromJson($jsonEncodedResponse)
    {
        $responseData = json_decode($jsonEncodedResponse, true);

        if (is_array($responseData['actionResults'])) {
            foreach ($responseData['actionResults'] as $action => $serializedActionResult) {
                $responseData['actionResults'][$action] = unserialize($serializedActionResult);
            }
        } elseif (is_null($responseData)) {
            $responseData = false;
        }

        return $responseData;
    }
public static function getResultsFromJson($jsonEncodedResponse)
    {
        $responseData = json_decode($jsonEncodedResponse, true);

        if (is_array($responseData['actionResults'])) {
            foreach ($responseData['actionResults'] as $action => $serializedActionResult) {
                $responseData['actionResults'][$action] = unserialize($serializedActionResult);
            }
        } elseif (is_null($responseData)) {
            $responseData = false;
        }

        return $responseData;
    }
public static function getResultsFromJson ( $ jsonEncodedResponse ) { $ responseData = json_decode ( $ jsonEncodedResponse , true ) ; if ( is_array ( $ responseData [ 'actionResults' ] ) ) { foreach ( $ responseData [ 'actionResults' ] as $ action => $ serializedActionResult ) { $ responseData [ 'actionResults' ] [ $ action ] = unserialize ( $ serializedActionResult ) ; } } elseif ( is_null ( $ responseData ) ) { $ responseData = false ; } return $ responseData ; }
Turns a JSON encoded result string back into its PHP representation.

@param string $jsonEncodedResponse JSON encoded result string
@return array|bool An array of action => result pairs or FALSE if the response could not be decoded
Turns a JSON encoded result string back into its PHP representation .