Adding access the JsonWriter for diagnostics