Greenbone Vulnerability Management Libraries 22.32.0
gvm_json_path_elem Struct Reference

Path element types for the JSON pull parser. More...

#include <jsonpull.h>

Collaboration diagram for gvm_json_path_elem:
Collaboration graph

Data Fields

gvm_json_pull_container_type_t parent_type
 parent container type
int index
 Index of the element within the parent.
char * key
 Key if element is in an object.
int depth
 Number of ancestor elements.

Detailed Description

Path element types for the JSON pull parser.

Definition at line 29 of file jsonpull.h.

Field Documentation

◆ depth

int gvm_json_path_elem::depth

Number of ancestor elements.

Definition at line 34 of file jsonpull.h.

Referenced by gvm_json_pull_expand_container(), and gvm_json_pull_path_elem_new().

◆ index

int gvm_json_path_elem::index

Index of the element within the parent.

Definition at line 32 of file jsonpull.h.

Referenced by gvm_json_path_string_add_elem(), and gvm_json_pull_parse_comma().

◆ key

char* gvm_json_path_elem::key

Key if element is in an object.

Definition at line 33 of file jsonpull.h.

Referenced by gvm_json_path_string_add_elem(), gvm_json_pull_parse_key(), and gvm_json_pull_path_elem_free().

◆ parent_type


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