Package groovy.json

Interface JsonGenerator

    • Method Detail

      • toJson

        String toJson​(Object object)
        Converts an object to its JSON representation.
        Parameters:
        object - to convert to JSON
        Returns:
        JSON
      • isExcludingFieldsNamed

        boolean isExcludingFieldsNamed​(String name)
        Indicates whether this JsonGenerator is configured to exclude fields by the given name.
        Parameters:
        name - of the field
        Returns:
        true if that field is being excluded, else false
      • isExcludingValues

        boolean isExcludingValues​(Object value)
        Indicates whether this JsonGenerator is configured to exclude values of the given object (may be null).
        Parameters:
        value - an instance of an object
        Returns:
        true if values like this are being excluded, else false