Json Parsing cuts of my string after serialising my object
After parsing my object with a lot of coordinates, it somehow only writes 90113 characters.
![](https://utfs.io/f/3b1c7117-3125-47fb-8a43-0636e970ee2f-4pl4mu.png)
![](https://utfs.io/f/8d206b21-0de1-40d5-83af-5bd38f06ddfd-4pl4mu.png)
3 Replies
a quick google suggests you may need to add a
using
statement for the streamwriter
e.g.using var streamWriter = new...
alternatively try setting Autoflush
on the streamwriter object to true
oh wauw, I thought it didn't matter that much, thank you very much!
in general it's a good idea to always
using
something that implements IDisposable
obviously you won't know what implements IDisposable
at first but you get a feel for it :)
streams, files, sockets...