This
function creates an object of the JSON Document (JavaScript Object Notation) type. A
JSON document can be used read/Modify JSON Document from a database as well as from
a disk.
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
JSON Document |
Out |
Yes |
JSONDocument |
The
created json document. |
iJSONDocument |
In |
Yes |
ObjectType |
The path from where document is read. |
Example
// Creates JSON Document while reading data from a file path
let jsonDoc(jsonDocument)
jsonDoc = CreateJSONDocument("F:\json_doc_volatile.json")
// Creates JSON Document while reading data from a PLMDocument
let plmDoc(PLMDMTDocument)
let plmBasedJSONdoc(JSONDocument)
plmDoc = AccessResource("JSON DOC","PLMDMTDocument")
if plmDoc <> NULL
{
plmBasedJSONdoc = CreateJSONDocument(plmDoc)
if plmBasedJSONdoc <> NULL
{
let jnode (JsonNode)
jnode = plmBasedJSONdoc.Root
jnode.Stringify()
}
}