de.enough.polish.json
Interface JsonItem

All Known Implementing Classes:
JsonArray, JsonNumber, JsonObject

public interface JsonItem

This interface defines methods common to all JSON-specific items (arrays, objects, numbers)

Author:
Ovidiu Iliescu

Method Summary
 String serializeToString()
          Serializes the item to a String, in a JSON-compatible format.
 void serializeToStringBuffer(StringBuffer stringBuffer)
          Serializes the item to a StringBuffer, in a JSON-compatible format.
 

Method Detail

serializeToStringBuffer

void serializeToStringBuffer(StringBuffer stringBuffer)
Serializes the item to a StringBuffer, in a JSON-compatible format.

Parameters:
stringBuffer - the StringBuffer to serialize to

serializeToString

String serializeToString()
Serializes the item to a String, in a JSON-compatible format.

Returns:
the resulting String