Skip to content

Working with the return json data #1721

Answered by Aniruddh25
BumpaRoy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BumpaRoy,
Thank you for your question!
You can define a class that represents the response (e.g. ResponseData) with value as an array of objects property. Then deserialize the response from DAB into an object of the ResponseData class from which you can then access the value property.
Example of deserialization is here: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/how-to?pivots=dotnet-8-0#deserialize-from-utf-8 where you can replace the WeatherForecast class with your ResponseData class.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BumpaRoy
Comment options

Answer selected by BumpaRoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants