cJSON_Parse

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > cJSON > CJSon low level interface >

cJSON_Parse

 

Description

 
Parse a JSON string buffer returning a pointer to the root node.

 

Syntax

 

cJSON Ptr = cJSON_Parse(sStringBuffer)

 

Returns

 

Number: a pointer to a cJSON structure.

Zero means error

 

Parameters

 

Name

Type

Optional

Meaning

sStringBuffer

String

No

A string representing a JSON data.

 

Remarks

 

This is the first function to call when starting to use a JSON string buffer.

 

Restrictions

 

See also

 

Examples