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.-
Constructor Summary
Constructors -
Method Summary
-
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:
addJSONin interfaceJSON.Generator
-