nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
json_helpers.h File Reference
#include "cJSON.h"

Go to the source code of this file.

Functions

void json_add_obj (cJSON *parent, const char *str, cJSON *item)
 Associate a child object with a parent.
 
void json_add_obj_array (cJSON *parent, cJSON *item)
 Add item to array object.
 
int json_add_number_to_array (cJSON *parent, double number)
 Add number to array object.
 
int json_add_number (cJSON *parent, const char *str, double item)
 
int json_add_bool (cJSON *parent, const char *str, int item)
 
cJSON * json_object_decode (cJSON *obj, const char *str)
 
int json_add_str (cJSON *parent, const char *str, const char *item)
 
void json_print_obj (const char *prefix, const cJSON *obj)