I want to use System.Text.Json
instead of Newtonsoft.Json
. But, I was unable to convert the string to an object.
Here is my request:
{"Abc":'{"Property1":"abds","property2":"232"}'}
I've tried to parse this string by JsonSerializer.Deserialize<A>(request)
and I'm getting an error.
Please suggest to me how can I parse this string into an object?
Thanks in advance!