mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
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>
20 lines
499 B
C++
20 lines
499 B
C++
#ifndef TESTS_JSON_TEST_H
|
|
#define TESTS_JSON_TEST_H
|
|
|
|
#include <string>
|
|
|
|
namespace flatbuffers {
|
|
namespace tests {
|
|
|
|
void JsonDefaultTest(const std::string& tests_data_path);
|
|
void JsonEnumsTest(const std::string& tests_data_path);
|
|
void JsonOptionalTest(const std::string& tests_data_path, bool default_scalars);
|
|
void ParseIncorrectMonsterJsonTest(const std::string& tests_data_path);
|
|
void JsonUnsortedArrayTest();
|
|
void JsonUnionStructTest();
|
|
|
|
} // namespace tests
|
|
} // namespace flatbuffers
|
|
|
|
#endif
|