Description
Loads a JSON string.
Applies to
JSONParser objects
Syntax
objectname.LoadString ( JsonData )
|
Argument |
Description |
|---|---|
|
objectname |
The name of the JSONParser object to which the JSON string will be loaded. |
|
JsonData |
A string whose value is the JSON data. |
Return value
String.
Returns the empty string ("") if it succeeds and null value if an error occurs. If any argument's value is null, the method returns null.
Examples
This example loads a JSON-formatted string into the JSONParser object:
JsonParser lnv_JsonParser
lnv_JsonParser = Create JsonParser
String ls_Json = '{"id":1, "name":"evan1", "birthday":2340323884}'
ls_Error = lnv_JsonParser.LoadString(ls_Json)
if Len(ls_Error) > 0 then
MessageBox("Error", ls_Error)
end if
See also


