Class JSONStyle

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

public class JSONStyle extends Object
JSONStyle object configure JSonSerializer reducing output size
Author:
Uriel Chemouni <[email protected]>
  • Field Details

    • FLAG_PROTECT_KEYS

      public static final int FLAG_PROTECT_KEYS
      for advanced usage sample see #see net.minidev.json.test.TestCompressorFlags
      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
  • Constructor Details

    • JSONStyle

      public JSONStyle(int FLAG)
    • JSONStyle

      public JSONStyle()
  • Method Details