jsonResult["filePath"]
{[
"D\\test.pdf"
]}
How to get this filepath? Cant able to convert this object into array.
Any other way to achieve this filePath?
jsonResult["filePath"]
{[
"D\\test.pdf"
]}
How to get this filepath? Cant able to convert this object into array.
Any other way to achieve this filePath?
If you're talking about parsing the JSON looks like
{
"filepath":[
"D://test.pdf",
"D://test2.pdf"
]
}
and get value from it via Json.net, you can just
JObject obj = JObject.Parse(jsonString);
MessageBox.Show(obj["filepath"][0].ToString()); // Showing "D://test.pdf"