Lines Matching defs:JSONWriter
31 * JSONWriter provides a quick and convenient way of producing JSON text.
34 * JSONWriter can produce one JSON text.
36 * A JSONWriter instance provides a <code>value</code> method for appending
42 * object values. All of these methods return the JSONWriter instance,
44 * new JSONWriter(myWriter)
52 * There are no methods for adding commas or colons. JSONWriter adds them for
59 public class JSONWriter {
94 * Make a fresh JSONWriter. It can be used to build one JSON text.
96 public JSONWriter(Writer w) {
110 private JSONWriter append(String s) throws JSONException {
141 public JSONWriter array() throws JSONException {
158 private JSONWriter end(char m, char c) throws JSONException {
179 public JSONWriter endArray() throws JSONException {
189 public JSONWriter endObject() throws JSONException {
201 public JSONWriter key(String s) throws JSONException {
233 public JSONWriter object() throws JSONException {
287 public JSONWriter value(boolean b) throws JSONException {
297 public JSONWriter value(double d) throws JSONException {
307 public JSONWriter value(long l) throws JSONException {
320 public JSONWriter value(Object o) throws JSONException {