Как из этого:
"{\n \"kind\": \"youtube#channelListResponse\",\n \"etag\": \"\\\"XI7nbFXulYBIpL0ayR_gDh3eu1k/hIueXgPmakbtLpTce1vH2igag7E\\\"\",\n \"pageInfo\": {\n \"totalResults\": 1,\n \"resultsPerPage\": 1\n },\n \"items\": [\n {\n \"kind\": \"youtube#channel\",\n \"etag\": \"\\\"XI7nbFXulYBIpL0ayR_gDh3eu1k/lU3QKvcJcmvCWjZFRd9zvMilEqk\\\"\",\n \"id\": \"UCRBk-5H9PZ6RHLY92-dd9jA\",\n \"statistics\": {\n \"viewCount\": \"992\",\n \"commentCount\": \"0\",\n \"subscriberCount\": \"55\",\n \"hiddenSubscriberCount\": false,\n \"videoCount\": \"6\"\n }\n }\n ]\n}\n"
Сделать это:
{
"kind": "youtube#channelListResponse",
"etag": "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/hIueXgPmakbtLpTce1vH2igag7E\"",
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 1
},
"items": [
{
"kind": "youtube#channel",
"etag": "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/lU3QKvcJcmvCWjZFRd9zvMilEqk\"",
"id": "UCRBk-5H9PZ6RHLY92-dd9jA",
"statistics": {
"viewCount": "992",
"commentCount": "0",
"subscriberCount": "55",
"hiddenSubscriberCount": false,
"videoCount": "6"
}
}
]
}
Это один и тот же массив
-
Вопрос задан
-
152 просмотра