JSONflags returns the exact same result but in JSON format.
rowskey contains the actual result set, each row is an object with a key the name of the column and with value the actual value of the row.
number_of_rowskey, an integer that describes how many rows are returned in this result set.
columnsfield maps the name of the column to their type.
JSONflag to your command and you are done.