caelum/vraptor4 — pull request #859 by adolfoweloy (2014-10-28 10:18:17+00:00)
Title: Add JSON versioning capability

This PR add JSON versioning capability to VRaptor4.
One of the most strategies used for API versioning is through URI.
With this PR, one can do API versioning allowing the controller to build a result based on URI parameter.

A sample example of usage follows:
```java
@Get("/example/{version}")
public void example(String version) {
Object response = new Object();
result.use(Results.json()).version(version).from(response).serialize();
}
```