Package com.fasterxml.jackson.databind

Examples of com.fasterxml.jackson.databind.ObjectMapper.convertValue()


   */
  public Object getParam(final String name) {
    final ObjectMapper mapper = JOM.getInstance();
    final ObjectNode params = req.with(PARAMS);
    if (params.has(name)) {
      return mapper.convertValue(params.get(name), Object.class);
    }
    return null;
  }
 
  /**
 
View Full Code Here


   *            the new data
   */
  public final void setData(final Object data) {
    final ObjectMapper mapper = JOM.getInstance();
    error.put(DATA_S,
        data != null ? mapper.convertValue(data, JsonNode.class) : null);
  }
 
  /**
   * Gets the data.
   *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.