Herb C Reference
Loading...
Searching...
No Matches
json.h
Go to the documentation of this file.
1#ifndef HERB_JSON_H
2#define HERB_JSON_H
3
4#include "buffer.h"
5
8
9void json_escape_string(buffer_T* json, const char* string);
10
11void json_add_string(buffer_T* json, const char* key, const char* value);
12void json_add_int(buffer_T* json, const char* key, int value);
13void json_add_size_t(buffer_T* json, const char* key, size_t value);
14void json_add_double(buffer_T* json, const char* key, double value);
15void json_add_bool(buffer_T* json, const char* key, int value);
16
17void json_add_raw_string(buffer_T* json, const char* string);
18
19void json_start_object(buffer_T* json, const char* key);
20void json_end_object(buffer_T* json);
21
22void json_start_array(buffer_T* json, const char* key);
23void json_end_array(buffer_T* json);
24
25void json_double_to_string(double value, char* buffer);
26void json_int_to_string(int value, char* buffer);
27
28#endif
void json_end_object(buffer_T *json)
Definition json.c:187
void json_add_double(buffer_T *json, const char *key, double value)
Definition json.c:87
void json_add_int(buffer_T *json, const char *key, int value)
Definition json.c:103
void json_add_raw_string(buffer_T *json, const char *string)
Definition json.c:162
void json_add_size_t(buffer_T *json, const char *key, size_t value)
Definition json.c:120
void json_add_string(buffer_T *json, const char *key, const char *value)
Definition json.c:74
void json_double_to_string(double value, char *buffer)
Definition json.c:49
void json_escape_string(buffer_T *json, const char *string)
Definition json.c:4
void json_start_object(buffer_T *json, const char *key)
Definition json.c:174
void json_start_array(buffer_T *json, const char *key)
Definition json.c:195
void json_start_root_object(buffer_T *json)
Definition json.c:170
void json_end_array(buffer_T *json)
Definition json.c:203
void json_add_bool(buffer_T *json, const char *key, int value)
Definition json.c:149
void json_int_to_string(int value, char *buffer)
Definition json.c:26
void json_start_root_array(buffer_T *json)
Definition json.c:191
Definition buffer.h:7