CodePlexProject Hosting for Open Source Software
I was wondering if you'd considered adding an option to JsonTextReader and the similar classes that would allow comments in the JSON to be silently discarded?
This would be very helpful to me.
Why don't you want comments?
You could inherit from JsonTextReader, override Read() and have it call base.Read() again whenever it encounters a comment.
Good suggestion, have now done that.
I don't want comments since the data I'm parsing may/may not contain comments (most likely not) and it's easier to parse if you can assume there's no comments.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.