luajson icon indicating copy to clipboard operation
luajson copied to clipboard

Add pretty-printer output

Open harningt opened this issue 14 years ago • 2 comments

The output mechanism should support pretty-printing. Example output can be found at:

  • http://www.jsonlint.com/
  • http://docs.python.org/library/json.html

From the python library, sorted object keys is also a desirable feature.

harningt avatar Feb 08 '11 05:02 harningt

Looking at this, this would likely require an overhaul of the encoding library. The current generation mechanism may need to be replaced w/ a utility to perform encoding directly in code as opposed to generating templates/etc. Benchmarks would be very important to measure performance changes.

harningt avatar Feb 08 '11 05:02 harningt

No luck so far?

agladysh avatar Oct 30 '13 17:10 agladysh