public static JsonWriter Create(String path, JsonWriterSettings settings) { return new JsonWriter(new StreamWriter(path), true, settings); }
internal JsonWriter(TextWriter output, bool ownOutput, JsonWriterSettings settings) { if (output == null) { throw new ArgumentNullException("output"); } if (settings == null) { throw new ArgumentNullException("settings"); } this.output = output; this.ownOutput = ownOutput; this.settings = settings; }