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
I want to deserialize everything under "pets" into a List<Pet>. There isn't a simple way to do this with the BinaryData API. In Azure, there is an extension method that allows you converting BinaryData to a dynamic type. There is also another extension method that allows converting to a dictionary of string, object here. Having this ability outside of Azure would be helpful.
Ultimately, I'd like to be able to do this:
There are cases where you are dealing with a BinaryData instance which contains some data following a known JSON schema under a given property, e.g.
I want to deserialize everything under "pets" into a
List<Pet>
. There isn't a simple way to do this with the BinaryData API. In Azure, there is an extension method that allows you converting BinaryData to a dynamic type. There is also another extension method that allows converting to a dictionary of string, object here. Having this ability outside of Azure would be helpful.Ultimately, I'd like to be able to do this:
or how it would look with the Azure extension method:
As a workaround, I was able to use
JsonNode
, but it feels like there is something missing from the BinaryData API:The text was updated successfully, but these errors were encountered: