Add tests for the JSON decoder.
These tests will test the bej_decoder_core.c as well.
Signed-off-by: Kasun Athukorala <kasunath@google.com>
Change-Id: Ibf1c9a381a630beac09ed504dd57563160579fb0
diff --git a/test/json/dummysimple.json b/test/json/dummysimple.json
new file mode 100644
index 0000000..96503a4
--- /dev/null
+++ b/test/json/dummysimple.json
@@ -0,0 +1,15 @@
+{
+ "Id": "Dummy ID",
+ "SampleIntegerProperty": -5,
+ "SampleRealProperty": -5576.90001,
+ "SampleEnabledProperty": null,
+ "ChildArrayProperty": [
+ {
+ "AnotherBoolean": true,
+ "LinkStatus": "NoLink"
+ },
+ {
+ "LinkStatus": "LinkDown"
+ }
+ ]
+ }