Allow full expansion of AOS messages
The -pretty flag in aos_dump is intended to unwrap AOS messages to
one field per line, but doesn’t fully do so for all messages. Add
a flag to force unwrapping to one field per line.
Change-Id: I9cab18d1fc4a67c50d7ca06b35c69f63b39c5041
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/json_to_flatbuffer.h b/aos/json_to_flatbuffer.h
index 1f475be..7168e4c 100644
--- a/aos/json_to_flatbuffer.h
+++ b/aos/json_to_flatbuffer.h
@@ -38,10 +38,13 @@
}
struct JsonOptions {
- // controls if the Json is written ouut on multiple lines or one.
+ // controls if the Json is written out on multiple lines or one.
bool multi_line = false;
// the contents of vectors longer than max_vector_size will be skipped.
size_t max_vector_size = SIZE_MAX;
+ // more extensive version of multi_line that prints every single field on its
+ // own line.
+ bool max_multi_line = false;
};
// Converts a flatbuffer into a Json string.