Interface JSONAwareEx

All Superinterfaces:
JSONAware
All Known Implementing Classes:
JSONArray, JSONObject

public interface JSONAwareEx extends JSONAware
Beans that support advanced output of JSON text shall implement this interface.

Adding compressions and formating features

Author:
Uriel Chemouni <[email protected]>
  • Method Summary

    Modifier and Type
    Method
    Description
    toJSONString(JSONStyle compression)
    Converts this object to JSON string representation with specified compression style.

    Methods inherited from interface net.minidev.json.JSONAware

    toJSONString
  • Method Details

    • toJSONString

      String toJSONString(JSONStyle compression)
      Converts this object to JSON string representation with specified compression style.
      Parameters:
      compression - the JSON style for formatting
      Returns:
      JSON text