Update json entities
This commit is contained in:
parent
202dc51a18
commit
ce38afc59f
@ -11,6 +11,7 @@ typedef struct json_value jval_t;
|
|||||||
typedef struct json_pair jpair_t;
|
typedef struct json_pair jpair_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
JVAL_EMPTY,
|
||||||
JVAL_COLLECTION,
|
JVAL_COLLECTION,
|
||||||
JVAL_STRING,
|
JVAL_STRING,
|
||||||
JVAL_INTEGER,
|
JVAL_INTEGER,
|
||||||
@ -22,6 +23,7 @@ typedef enum {
|
|||||||
struct json_value {
|
struct json_value {
|
||||||
jval_type type;
|
jval_type type;
|
||||||
union {
|
union {
|
||||||
|
void *null_val;
|
||||||
jcoll_t *collection;
|
jcoll_t *collection;
|
||||||
dstr_t *string;
|
dstr_t *string;
|
||||||
i64 num_int;
|
i64 num_int;
|
||||||
|
Loading…
Reference in New Issue
Block a user