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 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