Open mhaghighat20 opened 5 years ago
I have a similar issue...it seems that JSON serializers generally have issues with big JSON objects or fields with lots of data (Microsoft JSON serializer has same issue). I have a JSON with a field that contains about 600MB of HEX string, and encounter same issue as reported here. Also memory usage spikes to 3.3GB for such JSON, so almost 6x more than data itself, which would suggest there is a lot of data copying included.
Source/destination types
Expected behavior
Deserialize correctly
Actual behavior
System.OutOfMemoryException: 'Array dimensions exceeded supported range.' at Newtonsoft.Json.Utilities.BufferUtils.RentBuffer(IArrayPool`1 bufferPool, Int32 minSize) in \ConsoleApp30\Newtonsoft.Json\Utilities\JavaScriptUtils.cs:line 48
Steps to reproduce