Class JsonUtil.CustomPrettyPrinter

  • All Implemented Interfaces:
    com.fasterxml.jackson.core.PrettyPrinter, com.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>, java.io.Serializable
    Enclosing class:
    JsonUtil

    private static class JsonUtil.CustomPrettyPrinter
    extends com.fasterxml.jackson.core.util.DefaultPrettyPrinter
    This class is used to define a custom separator and array indent to achieve the same serialization in Java and .NET.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter

        com.fasterxml.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.NopIndenter
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter

        _arrayEmptySeparator, _arrayIndenter, _arrayValueSeparator, _nesting, _objectEmptySeparator, _objectEntrySeparator, _objectFieldValueSeparatorWithSpaces, _objectIndenter, _rootSeparator, _separators, _spacesInObjectEntries, DEFAULT_ROOT_VALUE_SEPARATOR
      • Fields inherited from interface com.fasterxml.jackson.core.PrettyPrinter

        DEFAULT_SEPARATORS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.core.util.DefaultPrettyPrinter createInstance()  
      • Methods inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter

        _withSpaces, beforeArrayValues, beforeObjectEntries, indentArraysWith, indentObjectsWith, withArrayIndenter, withObjectIndenter, withoutSpacesInObjectEntries, withRootSeparator, withRootSeparator, withSeparators, withSpacesInObjectEntries, writeArrayValueSeparator, writeEndArray, writeEndObject, writeObjectEntrySeparator, writeObjectFieldValueSeparator, writeRootValueSeparator, writeStartArray, writeStartObject
      • Methods inherited from class java.lang.Object

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

      • CustomPrettyPrinter

        public CustomPrettyPrinter()
    • Method Detail

      • createInstance

        public com.fasterxml.jackson.core.util.DefaultPrettyPrinter createInstance()
        Specified by:
        createInstance in interface com.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>
        Overrides:
        createInstance in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter