restsh.util.print_formated

restsh.util.print_formated#

Pretty prints a json structure and falls back to plain text if json parsing fails.

Usage: restsh.util.printjson <json>