From 12b04cc5b4168f13447fc8645fc9206a4ff4fd24 Mon Sep 17 00:00:00 2001 From: Tititesouris Date: Sat, 29 Oct 2016 13:55:31 +0200 Subject: [PATCH 1/2] Added 2 JSON examples to illustrates all the different datatypes and how the depth affects the algorithm. --- example_json/datatypeseg.json | 9 +++++ example_json/depthed.json | 63 +++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 example_json/datatypeseg.json create mode 100644 example_json/depthed.json diff --git a/example_json/datatypeseg.json b/example_json/datatypeseg.json new file mode 100644 index 0000000..c571f82 --- /dev/null +++ b/example_json/datatypeseg.json @@ -0,0 +1,9 @@ + { + "string" : "This is a string" , + "integer": 2, + "decimal": 5.5 , + "boolean": false, + "array": [ false , 6.3 ], + "null" : null, + "object": { } +} \ No newline at end of file diff --git a/example_json/depthed.json b/example_json/depthed.json new file mode 100644 index 0000000..e320eb1 --- /dev/null +++ b/example_json/depthed.json @@ -0,0 +1,63 @@ +{ + "how": { + "deep": { + "can": { + "we" : { + "go": { + "before" : { + "running": { + "out": { + "of": { + "memory": { + "?": { + "how": { + "deep": { + "we" : { + "go": { + "before" : { + "running": { + "of": { + "memory" : { + "deep": { + "can": { + "we": { + "go": { + "before": { + "running": { + "out": { + "of": { + "memory": { + "?": { + "-": [ null, null ] + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + }} + } + } + } + } + } + } + } + } + + } + + From baf0911d8a3651ff87694f4219a6db9d3064db1c Mon Sep 17 00:00:00 2001 From: Tititesouris Date: Mon, 31 Oct 2016 13:29:53 +0100 Subject: [PATCH 2/2] Added an example for edge case characters in strings --- example_json/datatypeseg.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example_json/datatypeseg.json b/example_json/datatypeseg.json index c571f82..3a21b9c 100644 --- a/example_json/datatypeseg.json +++ b/example_json/datatypeseg.json @@ -5,5 +5,5 @@ "boolean": false, "array": [ false , 6.3 ], "null" : null, - "object": { } -} \ No newline at end of file + "object": { }, + "edgecases": ["\"\\\n\t", "\u1234"]} \ No newline at end of file