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
-
Method Summary
-
Constructor Details
-
Literal
Constructs a literal JSON instance.- Parameters:
json
- a literal JSON string
-
-
Method Details
-
toString
-
addJSON
- Specified by:
addJSON
in interfaceJSON.Generator
-