Fix JsonWriter narrowing conversion error