<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > cJSON > CCJson class > <CCJson> constructor |
Description
Instantiate a CCJson object.
Syntax
json = New CCJson[(fileName)]
Returns
New CCJson instance.
Parameters
Name |
Type |
Optional |
Meaning |
fileName |
String |
Yes |
Full file path to JSON file |
Remarks
If you pass the JSON file as the parameter, the CCJson object will parse the contents immediately.
Restrictions
See also
Examples
' Create an empty CCJson object - you can use .Parse or .ParseFile later to fill it with data
Dim jsonA As New CCJson
' Create an empty CCJson object - you can use .Parse or .ParseFile later to fill it with data
Dim jsonB As CCJson
jsonB = New CCJson
' Create a CCJson object from file
Dim jsonC As New CCJson("C:\data\my.json")
' Create a CCJson object from file
Dim jsonD As CCJson
jsonD = New CCJson("C:\data\my.json")