Navigation:  ThinBASIC Modules > cJSON >

cJSON_Item_GetValue

Previous pageReturn to chapter overviewNext page

 

Description

 
Giving a cJSON node, this function returns the associated values if cJSON type is a single string, numeric or boolean element.

 

Syntax

 

s = cJSON_Item_GetValue(cJSON Ptr)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

cJSON

UDT Ptr

No

A pointer to a cJSON data structure

 

Remarks

 

Restrictions

 

If cJSON node is a numeric element containing a floating number, point will be used as decimal separator.

 

See also

 

Examples