JSON Parser allows union type fields to come after unions.
authorWouter van Oortmerssen <wvo@google.com>
Mon, 20 Jun 2016 23:06:30 +0000 (16:06 -0700)
committerWouter van Oortmerssen <wvo@google.com>
Mon, 20 Jun 2016 23:30:14 +0000 (16:30 -0700)
commit9e6c5f9f2c543a5ca608e8c1c4c9205139a87dcd
tree321611c5fc8a6329e13ccfc34085d53fe724cfd8
parent3639032d1e2224663202f79ca33c5039eed95f29
JSON Parser allows union type fields to come after unions.

This is useful because many JSON generators will sort the fields,
cause X_type to follow X.

Change-Id: I00ef3ac05418224fc05aee93e6b3b3597e73ffe3
Tested: on Linux.
Bug: 29221752
include/flatbuffers/idl.h
include/flatbuffers/reflection.h
src/idl_gen_cpp.cpp
src/idl_parser.cpp
tests/test.cpp