#ifndef JSON_H #define JSON_H #include "memory.h" #include "string.h" #include "vec.h" typedef struct { Vec keys; // Vec Vec values; // Vec size len; } JSONObject; typedef struct { int *integer; Vec *array; // Vec Str *string; JSONObject *object; } JSON; JSON *JSONObject_get(JSONObject *obj, Str key); int JSON_fprint(FILE *w, JSON json); JSON JSON_parse(Arena *a, byte *src); JSON JSON_Int(Arena *a, int val); #endif