org.apache.tapestry5.json
Class JSONLiteral

java.lang.Object
  extended by org.apache.tapestry5.json.JSONLiteral

public class JSONLiteral
extends Object

A way of including some text (often, text that violates the normal JSON specification) as part of a JSON object or array. This is used in a few places where data is nominally JSON but actually includes some non-conformant elements, such as an inline function definition.

Since:
5.1.0.2

Constructor Summary
JSONLiteral(String text)
           
 
Method Summary
 String toString()
          Returns the text property; this is also the value placed into the JSON string (unquoted, exactly as is).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONLiteral

public JSONLiteral(String text)
Method Detail

toString

public String toString()
Returns the text property; this is also the value placed into the JSON string (unquoted, exactly as is).

Overrides:
toString in class Object
Returns:
the text


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.