I have parse data but it's not properly parse in c#
Loading
I have parse data but it's not properly parse in c#
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.
Sachin SinghPosted Mar 3, 2022, 8:10 AM
Jignesh KumarPosted Mar 4, 2022, 8:59 AM
RohanPosted Mar 3, 2022, 9:22 AM
I have parse this data it's properly parse
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\"}]}]}";
dynamic json= JObject.Parse(data);
But here one issue face
Here First and Last one breakt extra add
"{{\"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\"}]}}]}";
RohanPosted Mar 3, 2022, 8:13 AM
RohanPosted Mar 3, 2022, 8:01 AM
This is my code
{
"Result": [
{
"key": {
"SearchTerm": "flwer"
},
"data": [
{
"ImgUrl": "https://blog.tucktools.com",
"Name": "Jhon",
"Title": "owershop",
"Description": "in delivery Hong Kong"
},
{
"ImgUrl": "wershop.com",
"Name": "Jhon Cena",
"Title": "1800flowers",
"Description": "FLOWERS.COM"
}
]
},
{
"key": {
"SearchTerm": "Pizza"
},
"data": [
{
"ImgUrl": "https://abc.png",
"Name": "Harry",
"Title": "com",
"Description": "Tamela Todd"
},
{
"ImgUrl": "gardenp.com",
"Name": "Roma",
"Title": "com",
"Description": " Thelma Todd"
}
]
}
]
}
Please parse this using c#