contentful / contentful.net

.NET Library for Contentful's Content Delivery and Management API
MIT License
95 stars 55 forks source link

Pass the MaxDepth from the JsonSetting to the JsonConverter #299

Closed FreshRob closed 2 years ago

FreshRob commented 2 years ago

This fix solves the following error we are getting

Newtonsoft.Json.JsonReaderException: 'The reader's MaxDepth of 64 has been exceeded. Path 'items[0].content.content.content[54].content[0].content[0].content[0].data.target.internalPage.content.content.content[57].content[1].content[0].content[1].data.target.internalPage.content.content.content[53].content[2].content[0].content[1].data.target.internalPage.content.content.content[54].content[3].content[0].content[0].data.target.internalPage.content.content.content[46].content[0].content[0].content[0].marks', line 30654, position 36.'

Roblinde commented 2 years ago

Thanks for the contribution @FreshRob I'll get this into the next version!