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

Intel plans up to 30% CPU price hikes in 2026 as AI demand rises, supply tightens, and consumer chip costs increase worldwide.

Intel CPU prices set to rise up to 30% in 2026 as AI demand reshapes supply

April 3, 2026

Google Gemma 4 Runs Locally on NVIDIA RTX GPUs With Faster AI Performance

April 2, 2026

Control Resonant Expands Gameplay With Bigger Team, Open Combat, and Melee Focus

April 2, 2026

Leave a Comment Cancel reply

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

Recent Posts

  • Intel CPU prices set to rise up to 30% in 2026 as AI demand reshapes supply
  • Google Gemma 4 Runs Locally on NVIDIA RTX GPUs With Faster AI Performance
  • Control Resonant Expands Gameplay With Bigger Team, Open Combat, and Melee Focus
  • NVIDIA Runs The Witcher 4 Forest Demo at 4K 80FPS Using RTX Mega Geometry
  • TSMC Plans Massive ‘GigaFab’ Expansion in Arizona to Match Taiwan Output

Recent Comments

  1. XxRIVTYxX on Intel Says It Tried to Help Before Crimson Desert Dropped Arc Support
  2. Gaurav Kumar on Chrome Prepares Nudge to ‘Move Tabs to the Side’ as Vertical Tabs Near Release
OnMSFT.com

The Tech News Site

Categories

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

Recent Posts

  • Intel CPU prices set to rise up to 30% in 2026 as AI demand reshapes supply
  • Google Gemma 4 Runs Locally on NVIDIA RTX GPUs With Faster AI Performance
  • Control Resonant Expands Gameplay With Bigger Team, Open Combat, and Melee Focus
  • NVIDIA Runs The Witcher 4 Forest Demo at 4K 80FPS Using RTX Mega Geometry
  • TSMC Plans Massive ‘GigaFab’ Expansion in Arizona to Match Taiwan Output

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