Pretty-print JSON in edit document dialog and query panel