repair JsonWriter