Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
220 views
in Technique[技术] by (71.8m points)

I have string JSON inside a json and i want to covert it back to json? in C#

{
"BatchId": "a298b197-8df2-4aed-98c3-10ff06f1013f",
"IsSuccess": true,
"ResultJson": "[{"conversionCompleted": true, "ebookPath": "zor091c5be6-e223-4933-b0f4-ba5c907cb11f/GEOG101_Final_10-20-2020.pdf/GEOG101_Final_10-20-2020.sef", "numPages": 295, "FrontCover": "zor091c5be6-e223-4933-b0f4-ba5c907cb11f/GEOG101_Final_10-20-2020.pdf/GEOG101_Final_10-20-2020_frontcover.jpg", "BackCover": "zor091c5be6-e223-4933-b0f4-ba5c907cb11f/GEOG101_Final_10-20-2020.pdf/GEOG101_Final_10-20-2020_backcover.jpg", "iconfile": "zor091c5be6-e223-4933-b0f4-ba5c907cb11f/GEOG101_Final_10-20-2020.pdf/GEOG101_Final_10-20-2020_icon.bmp.Z", "bucket": "zor473145f8-1c93-482e-b3bc-7704a9158d3c", "inputTag": "ScrFilePath"}]"
}

This is my json and the Result json is a json but its converted into String now i want to convert it back IM using newtonsoft.json package to convert it but i dont know how to proceed further can anybody help?

question from:https://stackoverflow.com/questions/65902217/i-have-string-json-inside-a-json-and-i-want-to-covert-it-back-to-json-in-c-shar

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you managed to parse outer json just retrieve value of field with inner json and parse that egan.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...