org.pf.bif.text
Interface IJSONConvertible
public interface IJSONConvertible
Implementers of this interface are capable of converting themselves into
a valid JSON string representation.
For details about JSON see
JSON Web Site
- Version:
- 1.0
- Author:
- Manfred Duchrow
Method Summary |
void |
appendAsJSONString(StringBuffer buffer)
The receiver of this method must append its internal state as JSON string
representation to the given buffer. |
String |
toJSON()
The receiver of this method returns its internal state as JSON string
representation. |
JSON_OBJECT_START
static final String JSON_OBJECT_START
- See Also:
- Constant Field Values
JSON_OBJECT_END
static final String JSON_OBJECT_END
- See Also:
- Constant Field Values
JSON_ARRAY_START
static final String JSON_ARRAY_START
- See Also:
- Constant Field Values
JSON_ARRAY_END
static final String JSON_ARRAY_END
- See Also:
- Constant Field Values
JSON_ELEMENT_SEPARATOR
static final String JSON_ELEMENT_SEPARATOR
- See Also:
- Constant Field Values
JSON_PAIR_SEPARATOR
static final String JSON_PAIR_SEPARATOR
- See Also:
- Constant Field Values
JSON_STRING_DELIMITER
static final String JSON_STRING_DELIMITER
- See Also:
- Constant Field Values
JSON_LITERAL_NULL
static final String JSON_LITERAL_NULL
- See Also:
- Constant Field Values
JSON_LITERAL_TRUE
static final String JSON_LITERAL_TRUE
- See Also:
- Constant Field Values
JSON_LITERAL_FALSE
static final String JSON_LITERAL_FALSE
- See Also:
- Constant Field Values
JSON_STRING_ESCAPE
static final String JSON_STRING_ESCAPE
- See Also:
- Constant Field Values
appendAsJSONString
void appendAsJSONString(StringBuffer buffer)
- The receiver of this method must append its internal state as JSON string
representation to the given buffer.
- Parameters:
buffer
- The buffer to which to append the JSON string (must not be null).
toJSON
String toJSON()
- The receiver of this method returns its internal state as JSON string
representation.
Copyright © 2012 Manfred Duchrow Consulting & Software. All Rights Reserved.