Class JsonUnifier


  • public class JsonUnifier
    extends java.lang.Object
    A utility class to help convert between Jackson and org.json JSON representations.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonUnifier()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.JsonNode jsonNode​(com.fasterxml.jackson.databind.JsonNode jsonNode)  
      static com.fasterxml.jackson.databind.JsonNode jsonNode​(org.json.JSONObject jsonObject)  
      static org.json.JSONObject jsonObject​(com.fasterxml.jackson.databind.JsonNode jsonNode)  
      static org.json.JSONObject jsonObject​(org.json.JSONObject jsonObject)  
      static java.lang.Object objectFromJsonNode​(com.fasterxml.jackson.databind.JsonNode value)
      Return an org.json compatible object from a Jackson JsonNode value.
      • Methods inherited from class java.lang.Object

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

      • JsonUnifier

        public JsonUnifier()
    • Method Detail

      • jsonObject

        public static org.json.JSONObject jsonObject​(com.fasterxml.jackson.databind.JsonNode jsonNode)
      • jsonObject

        public static org.json.JSONObject jsonObject​(org.json.JSONObject jsonObject)
      • jsonNode

        public static com.fasterxml.jackson.databind.JsonNode jsonNode​(org.json.JSONObject jsonObject)
      • jsonNode

        public static com.fasterxml.jackson.databind.JsonNode jsonNode​(com.fasterxml.jackson.databind.JsonNode jsonNode)
      • objectFromJsonNode

        public static java.lang.Object objectFromJsonNode​(com.fasterxml.jackson.databind.JsonNode value)
        Return an org.json compatible object from a Jackson JsonNode value.
        Parameters:
        value -
        Returns: