src/XQueue/Maileon/API/JSON/JSONDeserializer.php
static function json_decode($jsonString, $deserializationType = null) {
        if(is_array($deserializationType) && count($deserializationType) > 1) {
            $type = $deserializationType[0];
            $innerType = $deserializationType[1];
        } else {
            $type = $deserializationType;
            $innerType = null;
        }

//        return self::fromArray(json_decode($jsonString, true), $type, $innerType);
        return self::fromArray(json_decode($jsonString), $type, $innerType);
    }
static function json_decode($jsonString, $deserializationType = null) {
        if(is_array($deserializationType) && count($deserializationType) > 1) {
            $type = $deserializationType[0];
            $innerType = $deserializationType[1];
        } else {
            $type = $deserializationType;
            $innerType = null;
        }

//        return self::fromArray(json_decode($jsonString, true), $type, $innerType);
        return self::fromArray(json_decode($jsonString), $type, $innerType);
    }
Used to deserialize a Maileon class from JSON

@param type $jsonString
The JSON string to deserialize
@param mixed $deserializationType
The type of the deserialized object. For deserializing arrays use
array( 'array', 'typename' )
@return AbstractJSONWrapper|array