Link Search Menu Expand Document

JSONDocument.Get Method

Explanation Reads JSON data from the specified URL .

The Value value before executing the Get method is lost.
The JSON data to be acquired is not cached. Always get from the server.

If you do not specify param , thebe sentHTTPGET.
If you specify param , thebe sentHTTPPOST

If the web server does not return 200 ( $HTTP_OK ) for the HTTP status code, a CRS-331 exception will occur.

If the internal character code is Unicode , the character code of the input JSON file is UTF-8
Call format jsondoc.Get( URL [, param1 [, param2, … ] ] )
Return value None
Argument String URL URL to read JSON data
Same as the URL of the NetObject.Get method.
Object param Parameters to be added to the request
Same as param of NetObject.Get method.
Exception JSON-1 Nth character analysis failed
CRS-331 Communication error
Same as the exception to the NetObject.Get method.
Example of use
    var jsondoc = new JSONDocument;
    jsondoc.Get("/test/sample.cgi", "KEY=126", "MODE=A");
    
Related item Load, Parse, NetObject.Get methods