Add --json to log_cat to print fully valid json
This makes it easy to use JSON based tooling to dig inside the results.
Change-Id: I483869fe27e117bdf86b9f775371842477ef1cbe
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/flatbuffer_introspection.cc b/aos/flatbuffer_introspection.cc
index 5f6ca45..b7f3727 100644
--- a/aos/flatbuffer_introspection.cc
+++ b/aos/flatbuffer_introspection.cc
@@ -200,9 +200,9 @@
reflection::BaseType elem_type = type->element();
if (vector->size() > json_options.max_vector_size) {
- out->Append("[ ... ");
+ out->Append("[ \"... ");
out->AppendInt(vector->size());
- out->Append(" elements ... ]");
+ out->Append(" elements ...\" ]");
break;
}