Package org.eclipse.jetty.util.ajax
Class JSON.Literal
java.lang.Object
org.eclipse.jetty.util.ajax.JSON.Literal
- All Implemented Interfaces:
JSON.Generator
- Enclosing class:
JSON
A Literal JSON generator A utility instance of
JSON.Generator
that holds a pre-generated string on JSON text.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_json
-
-
Constructor Details
-
Literal
Construct a literal JSON instance for use byJSON.toString(Object)
. IfLogger.isDebugEnabled()
is true, the JSON will be parsed to check validity- Parameters:
json
- A literal JSON string.
-
-
Method Details
-
toString
-
addJSON
- Specified by:
addJSON
in interfaceJSON.Generator
-