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;
    }