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 Logger.isDebugEnabled()
is
true, the JSON will be parsed to check validityjson
- A literal JSON string.public void addJSON(Appendable buffer)
addJSON
in interface JSON.Generator
Copyright © 1995-2015 Webtide. All Rights Reserved.