This feature is available in a current snapshot: 3.0-SNAPSHOT for Java 16 and up.

ActiveWeb can also map requests to Java records. In this case, the built-in validation is not provided and
needs to be implemented by the application developer.

Example JSON Processing

Let's say we have a web client (a browser, or an API client) post this JSON document in a web request:

A simple Java Record for encapsulating this JSON object might look like this:

A controller would look like this:

As you can see, the framework is expecting the JSON value names to match the Java record properties exactly.


How to comment

The comment section below is to discuss documentation on this page.

If you have an issue, or discover bug, please follow instructions on the Support page