<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > Data Structures > cJSONCore > cJSONCore Methods > <cJSONCore>.Add (2) |
Description
Parse a file or a string buffer representing a valid JSON structure.
Syntax
<cJSONCore>.Parse0[( [FILE] sStringBuffer)]
Returns
None
Parameters
Name |
Type |
Optional |
Meaning |
sStringBuffer |
String |
Yes |
|
Remarks
Restrictions
See also
Examples
dim js as new cJSONCore
long nItems
'---3 Options to load data:
'-----1: set file name property then call parse method
js.file = "Sample.json"
nItems = js.parse
'-----2: parse data from file using FILE modifier
nItems = js.parse(file "Sample.json")
'-----3: parse string buffer
nItems = js.parse("{""x"":10,""y"":20}")