<CCJson>.Root

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > cJSON > CCJson class > <CCJson> Properties >

<CCJson>.Root

 

Description

 

Returns internal CJSon Ptr for use with low level functions.

 

Syntax

 

pRoot = <CCJson>.Root

 

Returns

 

Non-zero value for valid JSON.

 

Remarks

 

You should never need this when sticking with high-level interface.

 

Can come in handy for mixing low-level and CCJSon aproach.

 

Restrictions

 

See also

 

Examples

 

uses "cjson""console"

 

dim json as new CCJson             ' Create an empty CCJson object

 

json.Parse("{""name"": ""Eros""}"' Parse valid JSON string

printl "Root: " + json.Root        ' Non-zero value of CJson pointer

 

waitkey