add null (NIL) and negative numbers

This commit is contained in:
Felix Van der Jeugt 2022-11-04 08:21:05 +01:00
parent e8897609b7
commit 7471093f67
No known key found for this signature in database
GPG key ID: 58B209295023754D
2 changed files with 25 additions and 10 deletions

2
json.h
View file

@ -2,7 +2,7 @@
#define JSON_HEADER
#include "sortedmap.h"
#include "arraylist.h"
enum jsontype { BOOLEAN, STRING, NUMBER, LIST, MAP };
enum jsontype { NIL, BOOLEAN, STRING, NUMBER, LIST, MAP };
typedef struct json {
enum jsontype type;