How to parse json, the result of which array?

How to parse json, the result of which array?
here is an example json:
[{"title_ru":"Sverhsposobnostyami","title_en":"Powers","token":"4a2316a9f0941089726fe2e8ad933caf","type":"serial","kinopoisk_id":589079,"translator":"Jaskier","translator_id":12,"iframe_url":"http://moonwalk.cc/serial/4a2316a9f0941089726fe2e8ad933caf/iframe","seasons_count":2,"episodes_count":11,"category":null,"last_episode_time":"2016-06-03 21:09:25"},{"title_ru":"Sverhsposobnostyami","title_en":"Powers","token":"0220ac884319f10d77da010651fa4e38","type":"serial","kinopoisk_id":589079,"translator":"BaibaKo","translator_id":9,"iframe_url":"http://moonwalk.cc/serial/0220ac884319f10d77da010651fa4e38/iframe","seasons_count":2,"episodes_count":13,"category":null,"last_episode_time":"2016-06-07 17:03:55"},{"title_ru":"Sverhsposobnostyami","title_en":"Powers","token":"cb6c4c96abc0ae457503eba4a18950ab","type":"serial","kinopoisk_id":589079,"translator":"Coldfilm","translator_id":17,"iframe_url":"http://moonwalk.cc/serial/cb6c4c96abc0ae457503eba4a18950ab/iframe","seasons_count":1,"episodes_count":3,"category":null,"last_episode_time":"2016-06-03 15:08:17"},{"title_ru":"Sverhsposobnostyami","title_en":"Powers","token":"fb7ae6d8d6703a7836f3f84573733ebd","type":"serial","kinopoisk_id":589079,"translator":"IdeaFilm","translator_id":57,"iframe_url":"http://moonwalk.cc/serial/fb7ae6d8d6703a7836f3f84573733ebd/iframe","seasons_count":2,"episodes_count":11,"category":null,"last_episode_time":"2016-06-05 01:24:09"}]

tried that just then I do not know how to withdraw elements:
$MoonGet = "reference";
$fg = fopen($MoonGet, 'r');
$jsonGet = stream_get_contents($fg);
$resGet = json_decode($jsonGet, true);
July 8th 19 at 16:02
1 answer
July 8th 19 at 16:04
Solution
print_r?
var_dump?

UPD:
$json = file_get_contents('http://moonwalk.cc/api/videos.json?kinopoisk_id=589079&api_token=3f5dbaf1fe138f04ff788156a19fe6d8');

var_dump(json_decode($json, true));
[code]var_dump($resGet);[/code] produces NULL - Jake.Balistreri commented on July 8th 19 at 16:07
: and that $jsonGet? - nicklaus.Will commented on July 8th 19 at 16:10
same as NULL - Jake.Balistreri commented on July 8th 19 at 16:13
: the function of json_decode needs to accept a json string as the first argument and not NULL ;) - nicklaus.Will commented on July 8th 19 at 16:16
: try file_get_contentsto get the contents of the file. - nicklaus.Will commented on July 8th 19 at 16:19
: this is not a file but a link. Fully it looks like this
$MoonGet = "http://moonwalk.cc/api/videos.json?kinopoisk_id=589079&api_token=3f5dbaf1fe138f04ff788156a19fe6d8";
$fg = fopen($MoonGet, 'r');
$jsonGet = stream_get_contents($fg);
$resGet = json_decode($jsonGet, true);
- Jake.Balistreri commented on July 8th 19 at 16:22
: for the file_get_contents as a file, you can specify the link, updated the answer. - nicklaus.Will commented on July 8th 19 at 16:25

Find more questions by tags PHP