cJSON_Item_GetValueNumber

<< Click to Display Table of Contents >>

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

cJSON_Item_GetValueNumber

 

Description

 
Given a cJSON node, this function returns the associated numeric value.

 

Syntax

 

n = cJSON_Item_GetValueNumber(cJSON Ptr)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

cJSON

UDT Ptr

No

A pointer to a cJSON data structure

 

Remarks

 

Restrictions

 

If cJSON node is not a numeric element, this function will try to transform it into a numeric value.

 

See also

 

Examples