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

    • Method Detail

      • toJSONString

        java.lang.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