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

crun_json_manager source file More...

#include "../inc/crun_json_manager.h"
#include "../inc/crun_audit.h"
#include <cjson/cJSON.h>
#include <string.h>
Include dependency graph for crun_json_manager.c:

Functions

cJSON * get_json_root (const char *json_bufferer)
 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

crun_json_manager source file

Author
ZouariOmar zouar.nosp@m.ioma.nosp@m.r20@g.nosp@m.mail.nosp@m..com
Version
0.1
Date
2025-12-25

crun_json_manager.c

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: