I have a problem when I try to parse a large json
file, which has around 200mb
.
I'm doing it with Newtonsoft.Json
. It gives OutOfMemory
exception.
This is my code:
using (StreamReader sr=File.OpenText("path"))
{
JObject file= (JObject)JToken.ReadFrom(new JsonTextReader(sr));
}
How can I do this ? ( preferable using JObject )