Menu
Microsoft .NET JSON serialiser could get faster start-up

Microsoft .NET JSON serialiser could get faster start-up

Improved throughput and reduced application size are also on the drawing board for the System.Text.Json serialiser

Credit: Dreamstime

System.Text.Json, a JSON serialisation library in Microsoft’s .NET development platform, could add C# source code generation in an upcoming iteration. The change is designed to improve performance.

Plans call for utilisation of new C# source generator capabilities to help the built-in serialiser in the following ways:

  • Improve start-up and runtime throughput
  • Reduce private bytes usage
  • Reduce application size
  • Improve IL (Intermediate Language) Linker friendliness by avoiding runtime reflection

Efforts to utilise C# source generation in System.Text.Json were in a prototype stage as of mid-December. Microsoft envisions their coming to fruition in .NET 6.0, due in November of this year.

The System.Text.Json library converts .NET object types to a JSON string and vice versa. It supports UTF-8 text encoding and was introduced in .NET Core 3.0. A type in the library, JsonSeralizer, purports to have the highest level of functionality for processing JSON data.

In the new .NET 5, released in November, System.Text.Json gained improvements in performance and reliability, making the library easier to adopt for developers familiar with the Newtonsoft.Json framework.

Other plans in the offing for System.Text.Json include:

  • Extended polymorphic serialization and deserialisation
  • Asynchronous serializing and deserializing IAsyncEnumerable<T>
  • The addition of snake_case naming policy
  • Changing default settings for JsonSerializerOptions

Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags Microsoft

Featured

Slideshows

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

Hundreds of leaders from the New Zealand IT industry gathered at the Hilton in Auckland on 17 November to celebrate the finest female talent in the Kiwi channel and recognise the winners of the Reseller News Women in ICT Awards (WIICTA) 2020.

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards
Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

The leading female front runners of the New Zealand ICT industry joined together for the annual Reseller News Women in ICT Awards event at the Hilton in Auckland, during which hundreds of guests celebrated 13 outstanding individuals who won awards, chosen from more than 50 finalists representing over 30 organisations.

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards
Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

More than 500 channel leaders gathered in Auckland on 21 October at the ​Reseller News Innovation Awards ​2020 to celebrate the achievements of the New Zealand technology industry's top partners, start-ups, vendors, distributors and individuals.

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners
Show Comments