Link Search Menu Expand Document

JSONDocument.Parse Method

Explanation Read JSON data from a string .

The Value value before executing the Parse method will lost.

The Parse method has the same loading function as the Load method, but you can specify a String or UString object as an argument .
Call format jsondoc.Parse (str)
Return value None
Argument String (UString) str JSON string
Exception JSON-1 Nth character analysis failed
Example of use
        var jsondoc = new JSONDocument;
        var str = "[{\" aaa \ ": \" bbb \ "}, \" ccc \ "]";
        jsondoc.Parse (str);
    
Related item Save, Get, Load methods