frameworkers/furnace — Issue #4: Implement JsonResponse class to generate JSON responses
Author: andrewfhart
Created: 2012-02-06 05:41:31+00:00
State: open

The JsonResponse class should have the following properties:

* Extends `furnace\response\Response`
* Generates well-formed JSON from the contents of the object's `data` attribute

Developers should not have to make any changes to their controller logic to make use of this response class. In other words, the same `$this->set( $key, $value, $default = null)` syntax that is currently used for providing data to the `HtmlResponse` object should apply here. This will facilitate dynamic response type selection with minimal effort.