Class JSONStyle

java.lang.Object
net.minidev.json.JSONStyle

public class JSONStyle extends Object
JSONStyle object configure JSonSerializer reducing output size
  • Field Details

    • FLAG_PROTECT_KEYS

      public static final int FLAG_PROTECT_KEYS
      for advanced usage sample see
      See Also:
    • FLAG_PROTECT_4WEB

      public static final int FLAG_PROTECT_4WEB
      See Also:
    • FLAG_PROTECT_VALUES

      public static final int FLAG_PROTECT_VALUES
      See Also:
    • FLAG_AGRESSIVE

      public static final int FLAG_AGRESSIVE
      AGRESSIVE have no effect without PROTECT_KEYS or PROTECT_VALUE AGRESSIVE mode allows Json-smart to not protect String containing special chars
      See Also:
    • FLAG_IGNORE_NULL

      public static final int FLAG_IGNORE_NULL
      Since:
      2.1
      See Also:
    • NO_COMPRESS

      public static final JSONStyle NO_COMPRESS
    • MAX_COMPRESS

      public static final JSONStyle MAX_COMPRESS
    • LT_COMPRESS

      public static final JSONStyle LT_COMPRESS
      Since:
      1.0.9.1
    • _protectKeys

      private boolean _protectKeys
    • _protect4Web

      private boolean _protect4Web
    • _protectValues

      private boolean _protectValues
    • _ignore_null

      private boolean _ignore_null
    • mpKey

      private JStylerObj.MustProtect mpKey
    • mpValue

      private JStylerObj.MustProtect mpValue
    • esc

  • Constructor Details

    • JSONStyle

      public JSONStyle(int FLAG)
    • JSONStyle

      public JSONStyle()
  • Method Details