From 7fead0f14045d6839cc5826e4ccd36adcb779c6c Mon Sep 17 00:00:00 2001 From: Christian Helmich Date: Tue, 25 Jul 2017 01:33:40 +0900 Subject: [PATCH] forwarding IDLOptions.strict_json to flexbuffers .ToString() (#4394) --- src/idl_gen_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)