# Package groovy.json

package groovy.json
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.

- 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.
  JsonException
  `JsonException` is the exception thrown by the JSON builder and slurper classes, whenever a problem occurs when creating or parsing JSON data structures.
  JsonGenerator
  Generates JSON from objects.
  JsonGenerator.Converter
  Handles converting a given type.
  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
  JsonParser
  This is the parser interface that backs the new JsonSlurper.
  JsonParserType
  Allows selection of parser type for new JsonSlurper.
  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.
  JsonTokenType
  The original slurper and lexer use this class.
  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.