crun-cli v1.4.0
C-based project scaffolding CLI
Loading...
Searching...
No Matches
crun_json_manager.h
Go to the documentation of this file.
1
11
12#ifndef __CRUN_JSON_MANAGER_H__
13#define __CRUN_JSON_MANAGER_H__
14
15// #########################################
16// ### HEADERS & MACROS DECLARATION PART ###
17// #########################################
18
19#include <cjson/cJSON.h>
20#include <stdio.h>
21
22// ##################################
23// ### FUNCTIONS DECLARATION PART ###
24// ##################################
25
32cJSON *get_json_root(const char *json_buffer);
33
41cJSON *get_json_object(cJSON *root, const char *obj_name);
42
43#endif // __CRUN_JSON_MANAGER_H__
cJSON * get_json_root(const char *json_buffer)
Parse JSON buffer into cJSON root object.
Definition crun_json_manager.c:17
cJSON * get_json_object(cJSON *root, const char *obj_name)
Retrieve required JSON object child by name.
Definition crun_json_manager.c:39