harningt / luajson

JSON parser/encoder for Lua Parses JSON using LPEG for speed and flexibility. Depending on parser/encoder options, various values are preserved as best as possible.
http://www.eharning.us/wiki/luajson/
Other
249 stars 48 forks source link

Add pretty-printer output #13

Open harningt opened 13 years ago

harningt commented 13 years ago

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

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

harningt commented 13 years ago

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.

agladysh commented 11 years ago

No luck so far?