Navigation:  ThinBASIC Modules > cJSON >

cJSON_GetObjectItem

Previous pageReturn to chapter overviewNext page

 

Description

 
Returns a cJSON item whose name is sItemName from a cJSON object.

 

Syntax

 

cJSON Ptr = cJSON_GetObjectItem(cJSON Ptr, sItemName)

 

Returns

 

Number: a pointer to a cJSON structure.

Zero means error

 

Parameters

 

Name

Type

Optional

Meaning

cJSON

UDT Ptr

No

A pointer to a cJSON data structure

sItemName

String

No

Name of the item to be found inside cJSON object

 

Remarks

 

This function is Case Insensitive regarding sItemName

 

Restrictions

 

See also

 

Examples