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

This commit is contained in:
Christian Helmich 2017-07-25 01:33:40 +09:00 committed by Wouter van Oortmerssen
parent d6f14b704f
commit 7fead0f140
1 changed files with 1 additions and 1 deletions

View File

@ -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)