public function convert($jsonString, $mapToClass = null) {

        // Decode the string using PHP JSON Decode routine
        $converted = json_decode($jsonString, true);

        if ($mapToClass) {
            $converted = SerialisableArrayUtils::convertArrayToSerialisableObjects($converted, $mapToClass);
        }

        // Now convert to objects and return
        return $converted;
    }
public function convert($jsonString, $mapToClass = null) {

        // Decode the string using PHP JSON Decode routine
        $converted = json_decode($jsonString, true);

        if ($mapToClass) {
            $converted = SerialisableArrayUtils::convertArrayToSerialisableObjects($converted, $mapToClass);
        }

        // Now convert to objects and return
        return $converted;
    }
public function convert ( $ jsonString , $ mapToClass = null ) { // Decode the string using PHP JSON Decode routine $ converted = json_decode ( $ jsonString , true ) ; if ( $ mapToClass ) { $ converted = SerialisableArrayUtils :: convertArrayToSerialisableObjects ( $ converted , $ mapToClass ) ; } // Now convert to objects and return return $ converted ; }
Convert a json string into objects.  If the mapToClass member is passed
the converter will attempt to map the result to an instance of that class type or array.

@param string $jsonString
@param string $mapToClass
Convert a json string into objects . If the mapToClass member is passed the converter will attempt to map the result to an instance of that class type or array .