mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
forwarding IDLOptions.strict_json to flexbuffers .ToString() (#4394)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
d6f14b704f
commit
7fead0f140
@@ -178,7 +178,7 @@ static bool GenFieldOffset(const FieldDef &fd, const Table *table, bool fixed,
|
||||
} else if (fd.flexbuffer) {
|
||||
auto vec = table->GetPointer<const Vector<uint8_t> *>(fd.value.offset);
|
||||
auto root = flexbuffers::GetRoot(vec->data(), vec->size());
|
||||
root.ToString(true, false, *_text);
|
||||
root.ToString(true, opts.strict_json, *_text);
|
||||
return true;
|
||||
} else {
|
||||
val = IsStruct(fd.value.type)
|
||||
|
||||
Reference in New Issue
Block a user