Format the json input/output in the history tab so it's more readable

Update the history tab to show the different layers of the string output.

example if this can be serialize to a json object and printed with indents in place it place it make it more readable.

@darewreck

thanks for the feature request. It’s currently in the list of work items, though not among the first priorities. Ideally would implement this fix on server side and make it a json format (then web ui will render the payload nicer). Tracking and will get back here when it’s implemented