spring-json view 0.1 final released
Spring json-view adds JavaScript Object Notation (json) support to Spring-MVC.
Basically, it is an implementation of an AbstractView. It adds a Spring BindingResult, Field- and GlobalErrors (errorhandling), executes validations and
PropertyEditors to convert propertyvalues to a display string. But it also
provides some useful features to serve Ajax-Frameworks, for example prototype
like the Error Handling. And of course it transforms the model to a Json
String.
For furher information see the documentation
New Eatures:
ExceptionHandling Support added.
* The exceptionhandling is realized by an implemention of an HandlerExceptionResolver: The JsonExceptionResolver.
* You can register JsonErrorHandlers or JsonExceptionHandler to manipulate the response in the case of an thrown exception.
* JsonErrorHandlers signals the client that something went wrong.
* JsonExceptionHandler convert the java.lang.Exception object to be added to to the json-string.
Looking ahead:
What is planned for the next releases?
1. Add javadoc comments
2. Update the project homepage
3. Redesign the demoapplication
4. Integrate other json liberies (like json-lib)
5. Setup own json writer with json-lib like features and streaming support.