aboutsummaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
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