// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package test;

import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;

import org.restlet.representation.Representation;
import org.restlet.data.MediaType;
import org.restlet.ext.json.JsonRepresentation;

@Path("/TestCJson")
public class TestCJsonResource {
    @GET
    @Produces("application/json")
    public Representation get() {
        T1 o = new T1(123, "ABC");
        return new JsonRepresentation(o);
    }
}
