Package com.anthavio.httl.inout

Source Code of com.anthavio.httl.inout.Jackson2Util

package com.anthavio.httl.inout;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;

/**
*
* @author martin.vanek
*
*/
public class Jackson2Util {

  /**
   * Builde default Jackson ObjectMapper
   */
  public static ObjectMapper build() {
    ObjectMapper mapper = new ObjectMapper();
    mapper.setDateFormat(new ISO8601DateFormat());
    return mapper;
  }
}
TOP

Related Classes of com.anthavio.httl.inout.Jackson2Util

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.