예제 #1
0
 internal override void write(JsonWriter writer)
 {
     writer.writeArray(this);
 }
예제 #2
0
 internal override void write(JsonWriter writer)
 {
     writer.writeString(str);
 }
예제 #3
0
 /// <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();
 }
예제 #4
0
 internal abstract void write(JsonWriter writer);
예제 #5
0
 internal override void write(JsonWriter writer)
 {
     writer.writeObject(this);
 }