DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: CreateJsonParser for DataPlugin

Method: CreateJsonParser for DataPlugin

Creates a JsonParser object with methods for reading and writing JSON files in UTF8 format and for converting a JSON object into a Dictionary object or a VBS array, or vice versa.

Set oDispatch = Object.CreateJsonParser
ObjectDataPlugin
Object with this method
oDispatchReturned object

The following example reads a JSON file and converts the JSON string into a Dictionary object or an array:

Dim oJsonParser, sJsonString, oVbsVariant
Set oJsonParser = CreateJsonParser()
sJsonString = oJsonParser.ReadFile("c:\JsonObject.json")
Call oJsonParser.Deserialize(sJsonString, oVbsVariant)
In This Section
Was this information helpful?