how to convert json value with multiple lines to string?
{"responsemessage"= "hi, how are you?
yes, I'm fine."}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravinder SharmaPosted Jul 19, 2021, 12:41 AM
Bala SPosted Jul 17, 2021, 4:29 AM
using JsonSerializer.Serialize,
can able to do it.
please refer below
https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-how-to?pivots=dotnet-5-0
Bala SPosted Jul 17, 2021, 4:28 AM