crun-cli v1.4.0
C-based project scaffolding CLI
Loading...
Searching...
No Matches
crun_json_manager.h File Reference

JSON parsing helpers for stacks metadata. More...

#include <cjson/cJSON.h>
#include <stdio.h>
Include dependency graph for crun_json_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

cJSON * get_json_root (const char *json_buffer)
 Parse JSON buffer into cJSON root object.
cJSON * get_json_object (cJSON *root, const char *obj_name)
 Retrieve required JSON object child by name.

Detailed Description

JSON parsing helpers for stacks metadata.

Author
ZouariOmar (zouar.nosp@m.ioma.nosp@m.r20@g.nosp@m.mail.nosp@m..com)
Version
0.3
Date
2026-03-18

crun_json_manager.h

Function Documentation

◆ get_json_object()

cJSON * get_json_object ( cJSON * root,
const char * obj_name )

Retrieve required JSON object child by name.

Parameters
rootParent JSON root.
obj_nameObject key name.
Returns
cJSON* Object node, or NULL on failure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_json_root()

cJSON * get_json_root ( const char * json_buffer)

Parse JSON buffer into cJSON root object.

Parameters
json_bufferJSON text buffer.
Returns
cJSON* Parsed root object, or NULL on failure.
Here is the call graph for this function:
Here is the caller graph for this function: