public static class JSON.Literal extends Object implements JSON.Generator
JSON.Generator
that holds a pre-generated string on JSON text.| Constructor and Description |
|---|
JSON.Literal(String json)
Construct a literal JSON instance for use by
JSON.toString(Object). |
public JSON.Literal(String json)
JSON.toString(Object). If Log.isDebugEnabled() is
true, the JSON will be parsed to check validityjson - A literal JSON string.public void addJSON(Appendable buffer)
addJSON in interface JSON.GeneratorCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.