Skip to content

JSON_GET_INT_A

Jurek Muszyński edited this page Mar 31, 2022 · 6 revisions

bool JSON_GET_INT_A(JSON *json, int index, int *retval)

Description

Retrieves integer value from JSON array.

Returns

TRUE if element has been found, otherwise FALSE.

Example

for ( int i=0; i<JSON_COUNT(&json); ++i )
    OUT("<p>%d-th value: %d</p>", i, JSON_GET_INT_A(&json, i));

Clone this wiki locally