tree: 3e8a85c7df608958c596d9065aef65cc5b19e3df [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/json-moxy/README.MD

MOXy JAX-RS JSON Provider Example

This example demonstrates how to produce/consume JSON representations from Java objects.

Contents

The mapping of the URI path space is presented in the following table:

URI pathResource classHTTP method
/testJsonResourceGET
/testJsonResourcePOST

(See JsonResourceTest for more details.)

Running the Example

Run the example as follows:

mvn clean compile exec:java

This deploys the example using Grizzly

A WADL description may be accessed at the URL:

The resource is available at