Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
yyjson_arr_iter Struct Reference

#include <yyjson.h>

Data Fields

size_t idx
size_t max
yyjson_valcur

Detailed Description

A JSON array iterator.

Example

while ((val = yyjson_arr_iter_next(&iter))) {
your_func(val);
}
yyjson_api_inline yyjson_val * yyjson_arr_iter_next(yyjson_arr_iter *iter)
Definition yyjson.h:5672
yyjson_api_inline yyjson_arr_iter yyjson_arr_iter_with(const yyjson_val *arr)
Definition yyjson.h:5662

Definition at line 2191 of file yyjson.h.

Field Documentation

◆ cur

yyjson_val* yyjson_arr_iter::cur

next value

Definition at line 2194 of file yyjson.h.

◆ idx

size_t yyjson_arr_iter::idx

next value's index

Definition at line 2192 of file yyjson.h.

◆ max

size_t yyjson_arr_iter::max

maximum index (arr.size)

Definition at line 2193 of file yyjson.h.


The documentation for this struct was generated from the following file: