You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with JSON from Azure services, you can learn what properties are available in the JSON response content from the REST API documentation for the service, examples in the protocol method documentation, or by expanding the [Dynamic View](https://learn.microsoft.com/visualstudio/debugger/watch-and-quickwatch-windows) in Visual Studio.
If no parameter is passed to `ToDynamicFromJson()`, properties names must exactly match the member names in the JSON content. Passing `DynamicDataOptions.Default` will enable properties to be accessed using PascalCase property names, and will write any added properties with camelCase names.
109
-
110
96
### Cast to a POCO type
111
97
112
98
Dynamic JSON objects can be cast to CLR types using the cast operator.
Passing `DynamicDataOptions.Default` will deserialize the type from JSON with case-insensitive property names.
116
+
### Working with Azure values
117
+
118
+
When working with JSON from Azure services, you can learn what properties are available in the JSON response content from the REST API documentation for the service, examples in the protocol method documentation, or by expanding the [Dynamic View](https://learn.microsoft.com/visualstudio/debugger/watch-and-quickwatch-windows) in Visual Studio.
119
+
120
+
To behave as much as possible like Azure SDK model types, `DynamicData` allows JSON members to be accessed using PascalCase property names, and will write any added properties with camelCase names. If there is a need to bypass these name mappings, JSON members can be accessed with exact strings using property indexers.
0 commit comments