Navigation:  ThinBASIC Modules > cJSON >

cJSON_Parse

Previous pageReturn to chapter overviewNext page

 

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