Код: Выделить всё
"data": [
{
"id": "1",
"login": "name",
"display_name": "dName",
"type": "",
"broadcaster_type": "",
"description": "",
"profile_image_url": "...",
"offline_image_url": "",
"view_count": 1,
"created_at": "2017-09-11T20:36:17Z"
}
]
Код: Выделить всё
dateRequest
.execute(sendBy)
.log()
.map(jsonNode -> {
String createdAt = "";
return createdAt;
})
.subscribe();
Код: Выделить всё
{"id":"","login":"name","display_name":"dName","type":"","broadcaster_type":"","description":"","profile_image_url":"...","offline_image_url":"","view_count":1,"created_at":"2017-09-11T20:36:17Z"}
Единственный способ, который получится использовать:
Код: Выделить всё
Iterator iterator = data.iterator();
JsonNode next = iterator.next();
JsonNode id = next.path("id");
String stringId = id.textValue();
Подробнее здесь: https://stackoverflow.com/questions/714 ... node-array