Skip to content
OnMSFT.com
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
Menu
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
  1. Home
  2. News
  3. Enhanced Azure Core library for .NET now empowers developers with dynamic JSON capabilities

Enhanced Azure Core library for .NET now empowers developers with dynamic JSON capabilities

Devesh Beri Devesh Beri
July 11, 2023
2 min read

As reported by I Programmer, Microsoft has introduced a fresh, dynamic type to Azure.Core, enabling users to handle raw JSON data as a strongly typed model. It’s a big day for Azure, as it was also reported that a vulnerability had been discovered in the Microsoft Azure Active Directory (AD) Open Authorization (OAuth).

According to the Azure SDK team, they are incorporating protocol methods into Azure SDK client libraries. These methods offer a raw Response instead of the usual Response that contains a strongly typed model. When utilizing these methods, users have the flexibility to parse the response content using any JSON parser, such as JsonDocument.

The team acknowledges that utilizing existing APIs can head to code that is challenging to read and may not effectively express one’s intentions. To address this issue, the latest release of Azure.Core introduces a solution for retrieving response content as a dynamic type. This feature allows you to write code at the protocol layer that resembles the code written using a client’s convenience layer.

The Content property on Response now uses the BinaryData type, enhanced with a new extension method called ToDynamicFromJson. By invoking this method, you receive an instance of a newly introduced type called DynamicData, which enables you to treat JSON content as a strongly typed model. The dynamic JSON returned by this method is mutable, allowing you to modify its properties or even add new properties to it.

As the raw Response may not have the same appearance as a model type, as .NET types typically do not employ camel-case property names, Microsoft provides a “ToDynamicFromJson” method to enhance its correctness. By supplying a propertyNameFormat parameter to this method, you can specify the naming convention used in your JSON property names. DynamicData will then convert your C# property names to match the JSON content’s naming convention. The developers emphasize that this is part of a broader design objective for the type, aiming to make it behave like an Azure SDK model type.

Related

Share this article:
Previous Article FTC denied preliminary injunction on Microsoft Activision deal Next Article Designed for Xbox Summer Collection 2023 introduces 7 snazzy new Xbox accessories

Related Articles

OpenAI says ChatGPT ‘Adult Mode’ Needs More Time

March 9, 2026

Claude Opus 4.6 Discovers 22 Firefox Vulnerabilities in Just Two Weeks

March 9, 2026
OpenClaw can now connect with Gmail, Drive, and Docs using Google’s new CLI

OpenClaw can now connect with Gmail, Drive, and Docs using Google’s new CLI

March 9, 2026

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • OpenAI says ChatGPT ‘Adult Mode’ Needs More Time
  • Claude Opus 4.6 Discovers 22 Firefox Vulnerabilities in Just Two Weeks
  • OpenClaw can now connect with Gmail, Drive, and Docs using Google’s new CLI
  • Chrome Prepares Nudge to ‘Move Tabs to the Side’ as Vertical Tabs Near Release
  • How Apple Made the $599 MacBook Neo Without Using Plastic

Recent Comments

No comments to show.
OnMSFT.com

OnMSFT.com covers Microsoft news, reviews, and how-to guides. Formerly known as WinBeta, we have been your source for Microsoft news since 1998.

Categories

  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Gaming
  • Edge
  • Teams

Recent Posts

  • OpenAI says ChatGPT 'Adult Mode' Needs More Time
  • Claude Opus 4.6 Discovers 22 Firefox Vulnerabilities in Just Two Weeks
  • OpenClaw can now connect with Gmail, Drive, and Docs using Google’s new CLI
  • Chrome Prepares Nudge to 'Move Tabs to the Side' as Vertical Tabs Near Release
  • How Apple Made the $599 MacBook Neo Without Using Plastic

Quick Links

  • About OnMSFT.com
  • Contact OnMSFT
  • Join Our Team
  • Privacy Policy
© 2010–2026 OnMSFT.com LLC. All rights reserved.
About OnMSFT.comContact OnMSFTPrivacy Policy