De-serialize JSON

0

I'm working with an API that gives me a response in JSON format and I do not know how to deserialize the answer to get the values I need, I'm trying with the Gson library but I do not understand it, the answer I get in the following:

[
  {
    "detectedLanguage": {
      "language": "en",
      "score": 1.0
    },
    "translations": [
      {
        "text": "hello programmers",
        "to": "en"
      },
      {
        "text": "Hola programadores",
        "to": "es"
      }
    ]
  }
] 

I need to get both "text" and "to" , I hope you can help me

    
asked by zhet 12.07.2018 в 07:25
source

0 answers