Description
Loads a JSON file.
Applies to
JSONParser objects
Syntax
objectname.LoadFile ( FileName )
Argument |
Description |
---|---|
objectname |
The name of the JSONParser object to which the JSON file will be loaded. |
FileName |
A string whose value is the file full name. Only the TXT file type is supported. |
Return value
String.
Returns the empty string ("") if it succeeds and the error message if an error occurs. If any argument's value is null, the method returns null.
Examples
This example loads a JSON-formatted file into the JSONParser object:
JsonParser lnv_JsonParser lnv_JsonParser = Create JsonParser ls_Error = lnv_JsonParser.LoadFile("c:\employee.json") if Len(ls_Error) > 0 then MessageBox("Error", ls_Error) end if
See also