tree: 88a61bbe3a20840f54b1987bf6ef91595bcd3332 [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