<?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);
var_dump($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.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 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(1) {
[0]=>
object(stdClass)#1 (14) {
["id"]=>
string(8) "american"
["title"]=>
string(33) "A Timeline of American Literature"
["description"]=>
string(24) "LENGTHY DESCRIPTIVE TEXT"
["initial_zoom"]=>
string(2) "50"
["focus_date"]=>
string(19) "1650-01-01 00:00:00"
["size_importance"]=>
string(4) "true"
["timezone"]=>
string(6) "-06:00"
["min_zoom"]=>
string(2) "20"
["max_zoom"]=>
string(2) "80"
["image_lane_height"]=>
string(2) "50"
["display_zoom_level"]=>
string(1) "1"
["tags"]=>
object(stdClass)#2 (8) {
["Puritan"]=>
string(1) "0"
["Enlightenment"]=>
string(1) "0"
["Romantic"]=>
string(1) "0"
["Transcendental"]=>
string(1) "0"
["Dark Romantic"]=>
string(1) "0"
["African American"]=>
string(1) "0"
["American Indian"]=>
string(1) "0"
["International"]=>
string(1) "0"
}
["legend"]=>
array(3) {
[0]=>
object(stdClass)#3 (2) {
["title"]=>
string(12) "Author event"
["icon"]=>
string(12) "star_red.png"
}
[1]=>
object(stdClass)#4 (2) {
["title"]=>
string(17) "Publication event"
["icon"]=>
string(15) "square_blue.png"
}
[2]=>
object(stdClass)#5 (2) {
["title"]=>
string(16) "Historical event"
["icon"]=>
string(18) "triangle_green.png"
}
}
["events"]=>
array(2) {
[0]=>
object(stdClass)#6 (12) {
["id"]=>
string(28) "american-ccincore-1411541230"
["title"]=>
string(21) "William Bradford born"
["description"]=>
string(24) "LENGTHY DESCRIPTIVE TEXT"
["tags"]=>
string(7) "Puritan"
["startdate"]=>
string(17) "1950-03- 00:00:00"
["enddate"]=>
string(17) "1657-05- 00:00:00"
["importance"]=>
string(2) "50"
["date_display"]=>
string(4) "year"
["link"]=>
string(0) ""
["image"]=>
string(81) "https://www.csustan.edu/sites/default/files/ENGLISH/reuben/pal/chap1/bradford.gif"
["icon"]=>
string(12) "star_red.png"
["span_color"]=>
string(4) "#f66"
}
[1]=>
object(stdClass)#7 (12) {
["id"]=>
string(28) "american-mforkner-1411364607"
["title"]=>
string(22) "Church Mission Society"
["description"]=>
string(24) "LENGTHY DESCRIPTIVE TEXT"
["tags"]=>
string(0) ""
["startdate"]=>
string(19) "1799-01-01 00:00:00"
["enddate"]=>
string(19) "1799-01-01 00:00:00"
["importance"]=>
string(2) "50"
["date_display"]=>
string(4) "year"
["link"]=>
string(0) ""
["image"]=>
string(49) "http://webarchive.cms-uk.org/_images/tnsaies1.jpg"
["icon"]=>
string(4) ".png"
["span_color"]=>
string(4) "#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/1viI4 on line 73
Process exited with code 255. - Output for 5.1.2
- Fatal error: Call to undefined function json_decode() in /in/1viI4 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/1viI4 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/1viI4 on line 73
Process exited with code 255. - Output for 4.4.2
- Fatal error: Call to undefined function: json_decode() in /in/1viI4 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/1viI4 on line 73
preferences:
358.75 ms | 401 KiB | 459 Q