I am trying to deserialize a JSON string but I get an error:
var response = jss.Deserialize>(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("\"","'");
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)