org.pfsw.text.json
Interface JsonType

All Superinterfaces:
org.pfsw.bif.text.IJSONConvertible, org.pfsw.bif.text.IStringRepresentation
All Known Implementing Classes:
JsonArray, JsonObject

public interface JsonType
extends org.pfsw.bif.text.IJSONConvertible, org.pfsw.bif.text.IStringRepresentation

Common type for top level JSON objects (i.e. Object or Array).


Field Summary
 
Fields inherited from interface org.pfsw.bif.text.IJSONConvertible
JSON_ARRAY_END, JSON_ARRAY_START, JSON_ELEMENT_SEPARATOR, JSON_LITERAL_FALSE, JSON_LITERAL_NULL, JSON_LITERAL_TRUE, JSON_OBJECT_END, JSON_OBJECT_START, JSON_PAIR_SEPARATOR, JSON_STRING_DELIMITER, JSON_STRING_ESCAPE
 
Method Summary
 boolean isArray()
          Returns true if this is a JSON array representation (in Java).
 boolean isObject()
          Returns true if this is a JSON object representation (in Java).
 
Methods inherited from interface org.pfsw.bif.text.IJSONConvertible
appendAsJSONString, toJSON
 
Methods inherited from interface org.pfsw.bif.text.IStringRepresentation
asString
 

Method Detail

isObject

boolean isObject()
Returns true if this is a JSON object representation (in Java).


isArray

boolean isArray()
Returns true if this is a JSON array representation (in Java).