Class ImmutableJSON


  • public class ImmutableJSON
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.fasterxml.jackson.databind.ObjectMapper objectMapper  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.node.ObjectNode json​(io.floodplain.immutable.api.ImmutableMessage msg)  
      static byte[] jsonSerializer​(io.floodplain.immutable.api.ImmutableMessage msg, boolean includeNullValues, boolean includeTypes)  
      static java.lang.String ndJson​(io.floodplain.immutable.api.ImmutableMessage msg)  
      static com.fasterxml.jackson.databind.node.ObjectNode toJSON​(io.floodplain.immutable.api.ImmutableMessage msg, boolean includeNullValues, boolean includeTypes)  
      • Methods inherited from class java.lang.Object

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

      • objectMapper

        public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Method Detail

      • json

        public static com.fasterxml.jackson.databind.node.ObjectNode json​(io.floodplain.immutable.api.ImmutableMessage msg)
      • ndJson

        public static java.lang.String ndJson​(io.floodplain.immutable.api.ImmutableMessage msg)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • jsonSerializer

        public static byte[] jsonSerializer​(io.floodplain.immutable.api.ImmutableMessage msg,
                                            boolean includeNullValues,
                                            boolean includeTypes)
      • toJSON

        public static com.fasterxml.jackson.databind.node.ObjectNode toJSON​(io.floodplain.immutable.api.ImmutableMessage msg,
                                                                            boolean includeNullValues,
                                                                            boolean includeTypes)