{
"success":[
{
"url":"http:\/\/stream.vagalume.fm\/stream"
}
],
"format":"mp3",
"remaining":0
}
how to get url, format and remaining separately
{
"success":[
{
"url":"http:\/\/stream.vagalume.fm\/stream"
}
],
"format":"mp3",
"remaining":0
}
how to get url, format and remaining separately
You can use this library
There would be something close to that:
public String getTranslation(String json){
JSONObject data = new JSONObject(json);
return data.getJSONArray("sucesso").getJSONObject(0).getString("url");
}