@GET
  @Path("/")
  @Produces({"text/plain", "application/json"})
  public Response getValue(@Context HttpHeaders headers, @Context UriInfo ui) {

    String value = context.getProperties().get(PROPERTY_VALUE);

    StringBuffer buf = new StringBuffer();
    buf.append("{\"value\" : \"");
    buf.append(value);
    buf.append("\"}");

    return Response.ok(buf.toString()).build();
  }
Handles: GET /.

@param headers   http headers
@param ui        uri info

@return value JSON representation
ambari-views/examples/simple-view/src/main/java/org/apache/ambari/view/simple/SimpleService.java