Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

json-binding

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Jettison Example

Example of using RestEasy with: - Using JSON with RESTEasy - The Jakarta JSON Binding Provider

Building the project:

mvn clean install

Running the project and manually testing it:

mvn wildfly:dev

The data is marshalled to JSON. Use the following curl command to access the JSON data:

$ curl http://localhost:8080/json-binding/library/books

To see an individual book, use the following curl command to access the JSON data:

$ curl http://localhost:8080/json-binding/library/books/9780596158040