public static class JSON.Literal extends Object implements JSON.Generator
JSON.Generator that holds a pre-generated string on JSON text.| Constructor and Description |
|---|
Literal(String json)
Construct a literal JSON instance for use by
JSON.toString(Object). |
public 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(StringBuffer buffer)
addJSON in interface JSON.GeneratorCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.