Hi, this short series is an RFC implementation of adding JSON format output to show (info|stat). It also adds a new show schema json stats command to allow retreival of the schema which describes the JSON output of show (info|stat).
Some areas for possible discussion: * Use of STAT_STARTED in first patch * Possible automatic generation of (part) of schema in 2nd patch * Improved documentation Some discussion of the size of JSON output is included as an appendix to the changelog of the first patch. Simon Horman (2): MEDIUM: stats: Add JSON output option to show (info|stat) MEDIUM: stats: Add show json schema doc/management.txt | 74 ++++++-- include/types/stats.h | 2 + src/stats.c | 478 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 538 insertions(+), 16 deletions(-) -- 2.7.0.rc3.207.g0ac5344