aboutsummaryrefslogtreecommitdiff
path: root/test/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.cpp')
-rw-r--r--test/main.cpp8
1 files changed, 6 insertions, 2 deletions
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 <json.hpp>
#include <tokenizer.h>
#include <iostream>
#include <memory>
+#include <vector>
using std::cout, std::endl;
int main()
{
TehJSON::JSON jsonWriter;
- // TestClass test1;
- // json["test1"].set(test1);
jsonWriter["test_string"].set<std::string>("stringy");
jsonWriter["test_int"].set<int>(123);
jsonWriter["test_float"].set<float>(51.8);
+ jsonWriter["test_vecs"]["int"].set<int>({1, 2, 3});
+ // jsonWriter["test_vecs"]["float"].set<float>({0.1, 0.2, 0.3});
+ // jsonWriter["test_true"].set(true);
+ // jsonWriter["test_false"].set(false);
jsonWriter["test_object"]["test_int"].set<int>(100);
jsonWriter["test_object"]["test_float"].set<float>(100);