То, что уже запарсил с помощью:
"var data = $("#json").html();
console.log(data);"
(это было взято из тега script формата json)
[
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
{"slide_1":"Winterfell.jpg",
"slide_2":"The_Eyrie.jp",
"slide_3":"Riverrun (2).jpg",
"slide_4":"Pyke.jpg",
"slide_5":"Casterly_Rock.jpg",
"slide_6":"Storms_End.jpg",
"slide_7":"Sun_Spear.jpg",
"slide_8":"Dragonstone.jpg",
},
}
Хочу сделать массив в PHP, который потом передаду в шаблонизатор, но пока не знаю как.