Package com.opengamma.web.json

Examples of com.opengamma.web.json.ValueRequirementJSONBuilder


  /**
   * @param json A {@link ValueRequirement} encoded as Fudge JSON (see {@link ValueRequirementJSONBuilder}).
   */
  public ValueRequirementFormParam(String json) {
    ArgumentChecker.notEmpty(json, "json");
    _valueRequirement = new ValueRequirementJSONBuilder().fromJSON(json);
  }
View Full Code Here


                      MediaType mediaType,
                      MultivaluedMap<String, Object> httpHeaders,
                      OutputStream entityStream) throws IOException, WebApplicationException {
    Object[] rootNode = AnalyticsNodeJsonWriter.getJsonStructure(gridStructure.getRootNode());
    List<Map<String, Object>> columns = _writer.getJsonStructure(gridStructure.getColumnStructure().getGroups());
    ValueRequirementJSONBuilder jsonBuilder = new ValueRequirementJSONBuilder();
    String valueReqStr = jsonBuilder.toJSON(gridStructure.getRootRequirement());
    JSONObject valueReqJson;
    try {
      // need to convert it to a JSON object instead of a string otherwise it will be inserted into the outer object
      // as an escaped string instead of a child object
      valueReqJson = new JSONObject(valueReqStr);
View Full Code Here

TOP

Related Classes of com.opengamma.web.json.ValueRequirementJSONBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.