From 49a8dae0f3a6e589dfad65cbbf230137a7b67f4a Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 11 Jun 2026 22:11:09 +1200 Subject: feat: Started to add arrays Only supports arrays of ints so far --- test/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/main.cpp b/test/main.cpp index 00fca03..456810b 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,19 +1,23 @@ +#include "json.h" #include #include #include #include +#include using std::cout, std::endl; int main() { TehJSON::JSON jsonWriter; - // TestClass test1; - // json["test1"].set(test1); jsonWriter["test_string"].set("stringy"); jsonWriter["test_int"].set(123); jsonWriter["test_float"].set(51.8); + jsonWriter["test_vecs"]["int"].set({1, 2, 3}); + // jsonWriter["test_vecs"]["float"].set({0.1, 0.2, 0.3}); + // jsonWriter["test_true"].set(true); + // jsonWriter["test_false"].set(false); jsonWriter["test_object"]["test_int"].set(100); jsonWriter["test_object"]["test_float"].set(100); -- cgit v1.2.3