Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
json_obj_key_value Struct Reference

A single top-level "key": value member of a JSON object. More...

#include <json.h>

Data Fields

const char * key
 Member key text (not NUL-terminated), or NULL at the end of the object.
size_t key_len
 Length of the key text in bytes.
struct json_token value
 Member value, returned as a raw token span.

Detailed Description

A single top-level "key": value member of a JSON object.

Returned by json_obj_next_key_value. Both the key and the value are raw spans into the parsed payload; the value is returned verbatim (its type is given by value.type) and is not decoded.

Field Documentation

◆ key

const char* json_obj_key_value::key

Member key text (not NUL-terminated), or NULL at the end of the object.

◆ key_len

size_t json_obj_key_value::key_len

Length of the key text in bytes.

◆ value

struct json_token json_obj_key_value::value

Member value, returned as a raw token span.


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