org.mortbay.util.ajax
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(StringBuffer buffer)
addJSON
in interface JSON.Generator
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.