예제 #1
0
        /// <summary>
        /// Saves the JSON value as a text into a writer.
        /// </summary>
        /// <param name="writer">The writer to write to.</param>
        /// <param name="writingJsonLight">true if we are writing JSON Light, false if we're writing Verbose JSON.</param>
        public static void SaveAsText(this JsonValue value, TextWriter writer, bool writingJsonLight)
        {
            JsonTextPreservingWriter jsonWriter = new JsonTextPreservingWriter(writer, writingJsonLight);

            jsonWriter.WriteValue(value);
        }
예제 #2
0
 /// <summary>
 /// Saves the JSON value as a text into a writer.
 /// </summary>
 /// <param name="writer">The writer to write to.</param>
 /// <param name="writingJsonLight">true if we are writing JSON Light, false if we're writing Verbose JSON.</param>
 public static void SaveAsText(this JsonValue value, TextWriter writer, bool writingJsonLight)
 {
     JsonTextPreservingWriter jsonWriter = new JsonTextPreservingWriter(writer, writingJsonLight);
     jsonWriter.WriteValue(value);
 }