Package: groovy.json

## [Java] Class DefaultJsonGenerator

- groovy.json.DefaultJsonGenerator

- All Implemented Interfaces and Traits:
    JsonGenerator

      public class DefaultJsonGenerator
      extends Object
      implements JsonGenerator

  A JsonGenerator that can be configured with various JsonGenerator.Options. If the default options are sufficient consider using the static `JsonOutput.toJson` methods.

  See Also:
    JsonGenerator.Options#build()
  Since:
    2.5.0

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public boolean` | `isExcludingFieldsNamed(String name)` {@inheritDoc}
    `` | `public boolean` | `isExcludingValues(Object value)` {@inheritDoc}
    `` | `public String` | `toJson(Object object)` {@inheritDoc}

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Method Detail

    - #### @Override
      public boolean isExcludingFieldsNamed(String name)

      {@inheritDoc}

    - #### @Override
      public boolean isExcludingValues(Object value)

      {@inheritDoc}

    - #### @Override
      public String toJson(Object object)

      {@inheritDoc}