Package groovy.json

# Class JsonOutput.JsonUnescaped

java.lang.Object
groovy.json.JsonOutput.JsonUnescaped

Enclosing class:
  JsonOutput

public static class JsonOutput.JsonUnescaped extends Object
Represents unescaped JSON

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JsonUnescaped(CharSequence text)`
  Creates a wrapper for raw JSON text that should not be escaped.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CharSequence`
  `getText()`
  Returns the raw JSON text.
  `String`
  `toString()`
  Returns the wrapped raw JSON text.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JsonUnescaped

    public JsonUnescaped(CharSequence text)
    Creates a wrapper for raw JSON text that should not be escaped.
    Parameters:
      `text` - the raw JSON text

- ## Method Details

  - ### getText

    public CharSequence getText()
    Returns the raw JSON text.
    Returns:
      the unescaped JSON text

  - ### toString

    public String toString()
    Returns the wrapped raw JSON text.
    Overrides:
      `toString` in class `Object`
    Returns:
      the unescaped JSON text