
delight.json.JSONObject Maven / Gradle / Ivy
Show all versions of delight-json Show documentation
package delight.json;
public abstract class JSONObject extends JSON {
/**
*
* Add a new entry to this JSON.
*
* Note that value
may be another {@link JSON} instance.
*
* @param key
* The key for the value.
* @param value
* Value for the key. Can be a generic object, a string, or an
* instance of {@link JSON} or {@link JSONArray}
*
*/
public abstract JSONObject add(String key, Object value);
/**
*
* @return The rendered string representation of this JSON document.
*/
@Override
public abstract String render();
/**
*
* @param indentSize
* Defines how many spaces are to be inserted at the beginning of
* ever line.
* @return The rendered string representation of this JSON document.
*/
@Override
public abstract String render(int indentSize);
/**
*
* Prints this document to standard out.
*/
}