[Corona] Add a CompactJsonView class, for JSON output without NULL values

Review Request #270 — Created Feb. 24, 2014 and submitted — Latest diff uploaded

pprkut
Lunr
master
lunr
- Add a CompactJsonView class, for JSON output without NULL values.

Some platforms have rather complicated NULL handling, so stripping NULL values from the output makes working on those platforms easier.

- Add method to prepare data before using it for output.

This can be useful when you want to extend the class to treat certain value types in special ways, like for example dropping NULL values or converting all booleans to integers, etc.
Unit tests, example requests
Loading...