Quantcast
Channel: Json.NET
Viewing all articles
Browse latest Browse all 1767

Created Unassigned: JObject.Parse out of memory exception [25014]

$
0
0
When using JObject.Parse in a loop with large data i'm getting out of memory exception.

so i have changed :
JsonReader reader = new JsonTextReader(new StringReader(json));
to
using(JsonReader reader = new JsonTextReader(new StringReader(json)))

and it solved my problem.

Viewing all articles
Browse latest Browse all 1767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>