aboutsummaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 17:06:53 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 17:09:42 +0200
commit0be32393e54bed6bbf5890edba72b8808d276289 (patch)
treeba83502753e64f0c60f5202a8d224b57b52cf14f /json.h
parent85b0db24804e6a8a66f557ac8917596db5fc5d9f (diff)
format
Diffstat (limited to 'json.h')
-rw-r--r--json.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/json.h b/json.h
index fc2dcfe..13a3f11 100644
--- a/json.h
+++ b/json.h
@@ -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