jsonload
jsonload |
Purpose
Synopsis
procedure jsonload(doc:xmldoc, fname:text)
procedure jsonload(doc:xmldoc, fname:text, mode:integer)
Arguments
doc
|
Document to use
|
||||
fname
|
File name of the document to load
|
||||
mode
|
How to handle JSON object names:
|
Further information
1. This routine replaces the content of the provided document object with the JSON file given as second argument. If the file cannot be accessed or if an error occurs during reading, the procedure generates an IO error (which may be intercepted if the control parameter
ioctrl is true).
2. The parser converts the original JSON document into an XML representation (See Section
JSON document as an XML tree). Using the version of the procedure without the
mode argument is the same as using
0 for this parameter.
Related topics
Module