I am trying to parse through a string which i create after getting a response from an API.
this is the string i am trying to parse:
// API callback
translateText({
"data":{
"translations":[
{
"translatedText": "Ola Mundo",
"detectedSourceLanguage": "en"
}
]
}
}
);
i want to be able to get the Translated text "Ola Mundo", but i don't want to just search through it and get that specific text, as this Text maybe different the next time.