diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 17:06:53 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 17:09:42 +0200 |
| commit | 0be32393e54bed6bbf5890edba72b8808d276289 (patch) | |
| tree | ba83502753e64f0c60f5202a8d224b57b52cf14f /json.h | |
| parent | 85b0db24804e6a8a66f557ac8917596db5fc5d9f (diff) | |
format
Diffstat (limited to 'json.h')
| -rw-r--r-- | json.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -5,17 +5,17 @@ #include "vec.h" typedef struct { - Vec keys; // Vec<Str> + Vec keys; // Vec<Str> Vec values; // Vec<JSON> size len; } JSONObject; typedef struct { - int *integer; - Vec *array; // Vec<JSON> - Str *string; - JSONObject *object; + int *integer; + Vec *array; // Vec<JSON> + Str *string; + JSONObject *object; } JSON; -JSON* JSONObject_get(JSONObject *obj, Str key); +JSON *JSONObject_get(JSONObject *obj, Str key); JSON JSON_parse(Arena *a, byte *src); JSON JSON_Int(Arena *a, int val); #endif |
