Hello every one I have convert string to json object using this code.
It's working but this is not return correct result.
var data = "{\"publisResult\":[{\"key\":{\"SearchTerm\":\"flower\"},\"data\":[{\"PublisImgUrl\":\"https://abc.png\",\"Name\":\"Jhon\",\"Title\":\"gardenflowershop\",\"Description\":\"OnlineFlowerShopsindeliveryHongKong\"},{\"PublisImgUrl\":\"garden.com\",\"Name\":\"JhonCena\",\"Title\":\"weddings\",\"Description\":\"WeddingFlowersandGifts|1-800-FLOWERS.COM\"}]},{\"key\":{\"SearchTerm\":\"Pizza\"},\"data\":[{\"PublisImgUrl\":\"https://abc.png\",\"Name\":\"Harry\",\"Title\":\"benny-drinnon.com\",\"Description\":\"TAMELAC.TODD-Home|TamelaTodd\"},{\"PublisImgUrl\":\"gardenflowershop\",\"Name\":\"Roma\",\"Title\":\"benny-drinnon.blogspot\",\"Description\":\"MichelleMorganTalksThelma\"}]}]}";
JObject json = JObject.Parse(data);
Here starting and ending one one extra breckets added.
{{
"publisResult": [
{
"key": {
"SearchTerm": "flower"
},
"data": [
{
"PublisImgUrl": "https://abc.png",
"Name": "Jhon",
"Title": "gardenflowershop",
"Description": "OnlineFlowerShopsindeliveryHongKong"
},
{
"PublisImgUrl": "garden.com",
"Name": "JhonCena",
"Title": "weddings",
"Description": "WeddingFlowersandGifts|1-800-FLOWERS.COM"
}
]
},
{
"key": {
"SearchTerm": "Pizza"
},
"data": [
{
"PublisImgUrl": "https://abc.png",
"Name": "Harry",
"Title": "benny-drinnon.com",
"Description": "TAMELAC.TODD-Home|TamelaTodd"
},
{
"PublisImgUrl": "gardenflowershop",
"Name": "Roma",
"Title": "benny-drinnon.blogspot",
"Description": "MichelleMorganTalksThelma"
}
]
}
]
}}