# Package groovy.json

## Package groovy.json Description

JSON parsing, generation, and streaming support.

JsonParser parses JSON strings, JsonSlurper provides lazy/streaming parsing, JsonBuilder is a DSL for construction, and JsonOutput serializes to JSON.

- Interface Summary
  Interface | Description
  --- | ---
  JsonGenerator | Generates JSON from objects.
  JsonGenerator.Converter | Handles converting a given type.
  JsonParser | This is the parser interface that backs the new JsonSlurper.

- Class Summary
  Class | Description
  --- | ---
  DefaultJsonGenerator | A JsonGenerator that can be configured with various JsonGenerator.Options.
  DefaultJsonGenerator.ClosureConverter | A converter that handles converting a given type using a closure.
  JsonBuilder | A builder for creating JSON payloads.
  JsonDelegate | Utility class used as delegate of closures representing JSON objects.
  JsonGenerator.Options | A builder used to construct a JsonGenerator instance that allows control over the serialized JSON output.
  JsonLexer | The lexer reads JSON tokens in a streaming fashion from the underlying reader.
  JsonOutput | Class responsible for the actual String serialization of the possible values of a JSON structure.
  JsonOutput.JsonUnescaped | Represents unescaped JSON
  JsonSlurper | This has the same interface as the original JsonSlurper written for version 1.8.0, but its implementation has completely changed.
  JsonSlurperClassic | This is the original slurper included in case someone relies on its exact behavior.
  JsonToken | A JSON token, with a type, line / column information, and the text of that token.
  StreamingJsonBuilder | A builder for creating JSON payloads.
  StreamingJsonBuilder.StreamingJsonDelegate | The delegate used when invoking closures
  StringEscapeUtils | Escapes and unescapes `String`s for Java, Java Script, HTML, XML, and SQL.

- Enum Summary
  Enum | Description
  --- | ---
  JsonParserType | Allows selection of parser type for new JsonSlurper.
  JsonTokenType | The original slurper and lexer use this class.

- Exception Summary
  Exception | Description
  --- | ---
  JsonException | `JsonException` is the exception thrown by the JSON builder and slurper classes, whenever a problem occurs when creating or parsing JSON data structures.