Added a "strict JSON" mode to the text generator and compiler
authorWouter van Oortmerssen <wvo@google.com>
Tue, 8 Jul 2014 23:35:14 +0000 (16:35 -0700)
committerWouter van Oortmerssen <wvo@google.com>
Wed, 9 Jul 2014 18:43:30 +0000 (11:43 -0700)
commit7fcbe723fc821785abfec0348023d9ebf5b4db96
tree3e6a55f5d0c1ae481a1f42535aad3bacf1447af5
parent9140144d5161124623a27cf8b8038f6e7c9bb74d
Added a "strict JSON" mode to the text generator and compiler

This will add quotes around field names, as required by the official
standard. By default it will leave quotes out, as it is more readable,
more compact, and is accepted by almost all JSON parsers.
The -S switch to flatc turns on strict mode.

As per rfc 7159.

Change-Id: Ibabe9c8162c47339d00ec581d18721a2ba40c6d0
Tested: on Windows.
docs/html/md__compiler.html
docs/html/md__schemas.html
docs/source/Compiler.md
include/flatbuffers/idl.h
samples/sample_text.cpp
src/flatc.cpp
src/idl_gen_cpp.cpp
src/idl_gen_java.cpp
src/idl_gen_text.cpp
src/idl_parser.cpp
tests/test.cpp