Commit 7fead0f1 authored by Christian Helmich's avatar Christian Helmich Committed by Wouter van Oortmerssen

forwarding IDLOptions.strict_json to flexbuffers .ToString() (#4394)

parent d6f14b70
...@@ -178,7 +178,7 @@ static bool GenFieldOffset(const FieldDef &fd, const Table *table, bool fixed, ...@@ -178,7 +178,7 @@ static bool GenFieldOffset(const FieldDef &fd, const Table *table, bool fixed,
} else if (fd.flexbuffer) { } else if (fd.flexbuffer) {
auto vec = table->GetPointer<const Vector<uint8_t> *>(fd.value.offset); auto vec = table->GetPointer<const Vector<uint8_t> *>(fd.value.offset);
auto root = flexbuffers::GetRoot(vec->data(), vec->size()); auto root = flexbuffers::GetRoot(vec->data(), vec->size());
root.ToString(true, false, *_text); root.ToString(true, opts.strict_json, *_text);
return true; return true;
} else { } else {
val = IsStruct(fd.value.type) val = IsStruct(fd.value.type)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment