Update json entities

This commit is contained in:
Abdelrahman Said 2023-06-28 23:36:37 +01:00
parent 202dc51a18
commit ce38afc59f

View File

@ -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;