<?php
$JSON = <<<JSON
[
{
"id" : "american",
"title" : "A Timeline of American Literature",
"description" : "LENGTHY DESCRIPTIVE TEXT",
"initial_zoom" : "50",
"focus_date" : "1650-01-01 00:00:00",
"size_importance" : "true",
"timezone" : "-06:00",
"min_zoom" : "20",
"max_zoom" : "80",
"image_lane_height" : "50",
"display_zoom_level" : "1",
"tags" : {
"Puritan" : "0",
"Enlightenment" : "0",
"Romantic" : "0",
"Transcendental" : "0",
"Dark Romantic": "0",
"African American": "0",
"American Indian": "0",
"International" : "0"
},
"legend": [
{
"title": "Author event",
"icon": "star_red.png"
},
{
"title": "Publication event",
"icon": "square_blue.png"
},
{
"title": "Historical event",
"icon": "triangle_green.png"
}
],
"events": [
{
"id": "american-ccincore-1411541230",
"title": "William Bradford born",
"description": "LENGTHY DESCRIPTIVE TEXT",
"tags": "Puritan",
"startdate": "1950-03- 00:00:00",
"enddate": "1657-05- 00:00:00",
"importance": "50",
"date_display": "year",
"link": "",
"image": "https://www.csustan.edu/sites/default/files/ENGLISH/reuben/pal/chap1/bradford.gif",
"icon": "star_red.png",
"span_color": "#f66"
}, {
"id": "american-mforkner-1411364607",
"title": "Church Mission Society",
"description": "LENGTHY DESCRIPTIVE TEXT",
"tags": "",
"startdate": "1799-01-01 00:00:00",
"enddate": "1799-01-01 00:00:00",
"importance": "50",
"date_display": "year",
"link": "",
"image": "http://webarchive.cms-uk.org/_images/tnsaies1.jpg",
"icon": ".png",
"span_color": "#ccc"
}
]
}
]
JSON;
$data = json_decode($JSON);
print_r($data);
- Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Array
(
[0] => stdClass Object
(
[id] => american
[title] => A Timeline of American Literature
[description] => LENGTHY DESCRIPTIVE TEXT
[initial_zoom] => 50
[focus_date] => 1650-01-01 00:00:00
[size_importance] => true
[timezone] => -06:00
[min_zoom] => 20
[max_zoom] => 80
[image_lane_height] => 50
[display_zoom_level] => 1
[tags] => stdClass Object
(
[Puritan] => 0
[Enlightenment] => 0
[Romantic] => 0
[Transcendental] => 0
[Dark Romantic] => 0
[African American] => 0
[American Indian] => 0
[International] => 0
)
[legend] => Array
(
[0] => stdClass Object
(
[title] => Author event
[icon] => star_red.png
)
[1] => stdClass Object
(
[title] => Publication event
[icon] => square_blue.png
)
[2] => stdClass Object
(
[title] => Historical event
[icon] => triangle_green.png
)
)
[events] => Array
(
[0] => stdClass Object
(
[id] => american-ccincore-1411541230
[title] => William Bradford born
[description] => LENGTHY DESCRIPTIVE TEXT
[tags] => Puritan
[startdate] => 1950-03- 00:00:00
[enddate] => 1657-05- 00:00:00
[importance] => 50
[date_display] => year
[link] =>
[image] => https://www.csustan.edu/sites/default/files/ENGLISH/reuben/pal/chap1/bradford.gif
[icon] => star_red.png
[span_color] => #f66
)
[1] => stdClass Object
(
[id] => american-mforkner-1411364607
[title] => Church Mission Society
[description] => LENGTHY DESCRIPTIVE TEXT
[tags] =>
[startdate] => 1799-01-01 00:00:00
[enddate] => 1799-01-01 00:00:00
[importance] => 50
[date_display] => year
[link] =>
[image] => http://webarchive.cms-uk.org/_images/tnsaies1.jpg
[icon] => .png
[span_color] => #ccc
)
)
)
)
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.1, 5.1.3 - 5.1.6
- Fatal error: Call to undefined function json_decode() in /in/s60H6 on line 73
Process exited with code 255. - Output for 5.1.2
- Fatal error: Call to undefined function json_decode() in /in/s60H6 on line 74
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- Fatal error: Call to undefined function: json_decode() in /in/s60H6 on line 73
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.1, 4.4.3 - 4.4.4
- Fatal error: Call to undefined function: json_decode() in /in/s60H6 on line 73
Process exited with code 255. - Output for 4.4.2
- Fatal error: Call to undefined function: json_decode() in /in/s60H6 on line 74
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Call to undefined function: json_decode() in /in/s60H6 on line 73
preferences:
268.85 ms | 401 KiB | 371 Q