internal JsonWriter(TextWriter textWriter) { this.emptyObjectDetector = new EmptyObjectDetector(); this.textWriter = textWriter; }