NAME

RapidApp::View::JSON

DESCRIPTION

This view displays content as a JSON packet that will be used by RapidApp's client-side javascript.

It also handles the awkwardness of passing data back through ExtJS's form submissions. Form submissions require the data to be returned as *html* so that the browser doesn't screw it up, and then the rendered text of the HTML should be valid JSON that the Javascript uses.

This is also where error/exceptions are processed. This view used to have complex code for error reporting but this was removed a long time ago. This view is still in need of general cleanup