cJSON_Item_GetValue

<< Click to Display Table of Contents >>

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

cJSON_Item_GetValue

 

Description

 
Given 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