Improve flatbuffer reflection performance

Change-Id: I86b4ce21e8fe4ac2913dcd2c9e3c466c3f66a227
diff --git a/aos/json_to_flatbuffer.h b/aos/json_to_flatbuffer.h
index aebd069..9ba50f8 100644
--- a/aos/json_to_flatbuffer.h
+++ b/aos/json_to_flatbuffer.h
@@ -6,6 +6,7 @@
 #include <string>
 #include <string_view>
 
+#include "aos/fast_string_builder.h"
 #include "aos/flatbuffers.h"
 #include "flatbuffers/flatbuffers.h"
 #include "flatbuffers/reflection.h"
@@ -82,6 +83,10 @@
                              const uint8_t *const data,
                              JsonOptions json_options = {});
 
+void FlatbufferToJson(FastStringBuilder *builder,
+                      const reflection::Schema *const schema,
+                      const uint8_t *const data, JsonOptions json_options = {});
+
 // Writes a Flatbuffer to a file, or dies.
 template <typename T>
 inline void WriteFlatbufferToJson(const std::string_view filename,