Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News Json.NET 8 Introduces ArrayPools for Performance Gains

Json.NET 8 Introduces ArrayPools for Performance Gains

This item in japanese


Json.NET creator James Newton-King has produced the 8th version, and is focused on improving performance to match what he feels is a broader performance-based intiaitive in the .NET ecosystem as a whole.  For this release (its first since June 2015), Json.NET is doing so by adding a new interface that is intended “to reduce allocations and memory usage when serializing”.

Called IArrayPool, this interface lets Json.NET to reuse array buffers which provides the foundation for the performance gains.  Newton-King calls this “a somewhat experimental feature” so only those who currently have a need should enable it.

Another change for version 8 is that comments in the JSON that is being read into JArrays are now ignored.  This change is being done to eliminate a common source of errors, but the previous behavior can be enabled by CommentHandling.Load on JsonLoadSettings.

Beyond these changes version 8 includes over 2 dozen minor bug fixes, unless there is a version specific reason holding you back, consider upgrading to the latest version.  Links to the source code and project files is available on GitHub.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.