[Corona] Add a JsonView class

Review Request #247 — Created Nov. 29, 2013 and submitted — Latest diff uploaded

pprkut
Lunr
pprkut:halo
246
lunr
Add a JsonView class.

- content type of the output to application/json
- http response code is set to the return code value
- pretty print output if on cli
Unit tests
src/Lunr/Corona/JsonView.php
src/Lunr/Corona/Tests/JsonViewBaseTest.php
src/Lunr/Corona/Tests/JsonViewPrintTest.php
src/Lunr/Corona/Tests/JsonViewTest.php
tests/phpunit.xml
tests/statics/Corona/json_code.json
tests/statics/Corona/json_complete.json
tests/statics/Corona/json_empty_message.json
Loading...