Make JSON supporting advanced union features (#7869)

This change allows user to decode binary with given schema to JSON
representation when schema defines union with struct.

Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
Adam Oleksy
2023-04-26 07:37:06 +02:00
committed by GitHub
parent d6d83c3a92
commit ab716ee41d
4 changed files with 37 additions and 1 deletions

View File

@@ -1557,6 +1557,7 @@ int FlatBufferTests(const std::string &tests_data_path) {
ParseIncorrectMonsterJsonTest(tests_data_path);
FixedLengthArraySpanTest(tests_data_path);
DoNotRequireEofTest(tests_data_path);
JsonUnionStructTest();
#else
// Guard against -Wunused-parameter.
(void)tests_data_path;