Added (nested) FlexBuffer JSON parsing and output.

FlexBuffer parser is just 40 lines of code (on top of existing parser!).

Change-Id: Idebebadafb661ca5333f5621139031f6df3c3e1a
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2017-06-05 17:45:44 -07:00
parent dddd0865cb
commit 8f864aad7b
10 changed files with 332 additions and 192 deletions

View File

@@ -1,9 +1,9 @@
{
pos: {
x: 1,
y: 2,
z: 3,
test1: 3,
x: 1.0,
y: 2.0,
z: 3.0,
test1: 3.0,
test2: Green,
test3: {
a: 10,
@@ -63,5 +63,6 @@
testhashs32_fnv1a: -1904106383,
testhashu32_fnv1a: 2390860913,
testhashs64_fnv1a: 4898026182817603057,
testhashu64_fnv1a: 4898026182817603057
testhashu64_fnv1a: 4898026182817603057,
flex: 1234
}