internal override void write(JsonWriter writer) { writer.writeArray(this); }
internal override void write(JsonWriter writer) { writer.writeString(str); }
/// <summary> /// Returns the JSON string for this value in its minimal form, without any additional whitespace. /// The result is guaranteed to be a valid input for the method <see cref="readFrom(string)"/> and to create a value that is equal to this object. /// </summary> /// <returns>a JSON string that represents this value</returns> public override string ToString() { StringWriter stringWriter = new StringWriter(); JsonWriter jsonWriter = new JsonWriter(stringWriter); write(jsonWriter); return stringWriter.ToString(); }
internal abstract void write(JsonWriter writer);
internal override void write(JsonWriter writer) { writer.writeObject(this); }