diff --git a/src/idl_gen_text.cpp b/src/idl_gen_text.cpp index f68ae95fc..ff4cbf468 100644 --- a/src/idl_gen_text.cpp +++ b/src/idl_gen_text.cpp @@ -178,7 +178,7 @@ static bool GenFieldOffset(const FieldDef &fd, const Table *table, bool fixed, } else if (fd.flexbuffer) { auto vec = table->GetPointer *>(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)