forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Milestone
Description
Hoping to propose a small revision to CircuitPython's json.dumps so it supports pretty-printing of JSON strings. It seems ujson.dumps supports two additional formatting arguments: json.dumps(parsed, indent=4, sort_keys=True) (https://stackoverflow.com/a/12944035/6763539).
Some may want this pretty-print functionality, while others may find it unnecessary. Given how Python supports import of specific module functions, perhaps there should be json.dump & a json.dumps where json.dumps is status-quo & json.dump prints JSON in a pretty format?
cyrils, bishopuniverse, stefanfoulis, roguh, jgreat and 1 morexstook, stefanfoulis and jspeterson