I have below text and I want to extract Comment allez-vous from below text how do I extract using C# ?. This text will be different 开发者_运维技巧all the time. rest of the data format is the same.
handleResponse({
"data": {
"translations": [
{
"translatedText": "Comment allez-vous"
}
]
}
}
);
It's JSON. Use a JSON parser for .Net like JSON.NET or the JavaScriptSerializer
Look for last index of ". index A
Find first index for translatedText + length of translatedText +1. index B
fetch all string betwee B and A.
精彩评论