I am trying to deserialize a JSON string but I get an error:
var response = jss.Deserialize<Dictionary<string,string>>(responseValue);
I got an error that :
Type 'System.String' is not supported for deserialization of an array.
I think that the error will be fixed if I change \"
with '
this is the string
"{\"data\":[],\"error\":1,\"error_msg\":\"could not find associated database\",\"message\":\"Please check sr_no that you have sent\"}"
I want it like this
"{'data':[],'error':1,'error_msg':'could not find associated database','message':'Please check sr_no that you have sent'}"
I have tried this using function as following but didn't work for me
responseValue.Replace("\"","'");