Query: Quantified advantage of using System.Text.Json over Newtonsoft #80070
-
The official documentation mentions that "System.Text.Json focuses primarily on performance, security, and standards compliance." Can you help quantify the advantage System.Text.Json offers in these aspects over Newtonsoft.Json? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsThe official documentation mentions that "System.Text.Json focuses primarily on performance, security, and standards compliance." Can you help quantify the advantage System.Text.Json offers in these aspects over Newtonsoft.Json?
|
Beta Was this translation helpful? Give feedback.
-
Following up on this, can you help with this query? |
Beta Was this translation helpful? Give feedback.
-
Following up on this again, can you help with this query? |
Beta Was this translation helpful? Give feedback.
-
Hi @snjosephms. I'm guessing this is primarily a question about performance since the "security" and "standards compliance" bits are expanded on in the sections following the sentence that you quoted. It's a good question, we run a number of benchmarks comparing STJ to other well-known JSON serializers. We generally avoid posting performance numbers in documentation since these are subject to change, but here is a snapshot containing results from a few months back: dotnet/performance#2740 |
Beta Was this translation helpful? Give feedback.
Hi @snjosephms. I'm guessing this is primarily a question about performance since the "security" and "standards compliance" bits are expanded on in the sections following the sentence that you quoted.
It's a good question, we run a number of benchmarks comparing STJ to other well-known JSON serializers. We generally avoid posting performance numbers in documentation since these are subject to change, but here is a snapshot containing results from a few months back: dotnet/performance#2740