The problem arose when decoding received information in Adobe Flash.

Imported JSON: "import com.adobe.serialization.json. *;".

I tried to decode JSON string in the function: "var msg: Object = JSON.decode (" JSON_String ");".

In response, I get the error: "1061: Appeal to the possibly undefined decode method via a link of static type Class.".

Actually, I don’t understand why he says decode is not present in the JSON class if it is there. How can this be fixed?

    1 answer 1

    Downloaded - https://github.com/mikechambers/as3corelib

    Install - import com.adobe.serialization.json.JSON;

    var msg:Object = JSON.decode("JSON_строка"); 

    Really issued an error.

    Recorded as follows:

     var msg:Object = com.adobe.serialization.json.JSON.decode("JSON_строка"); 

    It worked.