Class Jackson

java.lang.Object
com.yahoo.json.Jackson

public class Jackson extends Object
Utility class to get jackson json parsers with common settings. TODO Belong in vespajlib, but due to OSGI resides here. There is also a copy in testutil for testing in non OSGI modules
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
     
    static com.fasterxml.jackson.databind.ObjectMapper
    createMapper(com.fasterxml.jackson.core.JsonFactoryBuilder jsonFactoryBuilder)
     
    static com.fasterxml.jackson.databind.ObjectMapper
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jackson

      public Jackson()
  • Method Details

    • createMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createMapper()
    • createMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createMapper(com.fasterxml.jackson.core.JsonFactoryBuilder jsonFactoryBuilder)
    • mapper

      public static com.fasterxml.jackson.databind.ObjectMapper mapper()