Instantly share code, notes, and snippets.
Last active
October 13, 2015 18:43
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save laradevitt/ddcd3ddfe16c66e58e15 to your computer and use it in GitHub Desktop.
Example JSON output of a Drupal main menu provided by Services Menu module (services_menu).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "main-menu", | |
"tree": { | |
"Quia Quis Tego | 506": { | |
"link": { | |
"mlid": "506", | |
"plid": "0", | |
"title": "Quia Quis Tego", | |
"description": "", | |
"path": "node/39", | |
"path_alias": "node-39-article", | |
"href": "node/39", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "0", | |
"weight": "-50", | |
"depth": "1", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of spacrivo." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of spacrivo." | |
} | |
} | |
}, | |
"children": [] | |
}, | |
"Euismod Genitus Ideo | 505": { | |
"link": { | |
"mlid": "505", | |
"plid": "0", | |
"title": "Euismod Genitus Ideo", | |
"description": "", | |
"path": "node/51", | |
"path_alias": "node-51-article", | |
"href": "node/51", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "0", | |
"weight": "-46", | |
"depth": "1", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of me." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of me." | |
} | |
} | |
}, | |
"children": [] | |
}, | |
"Gilvus Paulatim Saluto Sudo | 507": { | |
"link": { | |
"mlid": "507", | |
"plid": "0", | |
"title": "Gilvus Paulatim Saluto Sudo", | |
"description": "", | |
"path": "node/64", | |
"path_alias": "node-64-article", | |
"href": "node/64", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "1", | |
"weight": "-7", | |
"depth": "1", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of nagejoslok." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of nagejoslok." | |
} | |
} | |
}, | |
"children": { | |
"Nunc Voco | 511": { | |
"link": { | |
"mlid": "511", | |
"plid": "507", | |
"title": "Nunc Voco", | |
"description": "", | |
"path": "node/41", | |
"path_alias": "node-41-article", | |
"href": "node/41", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "0", | |
"weight": "3", | |
"depth": "2", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of swa." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of swa." | |
} | |
} | |
}, | |
"children": [] | |
} | |
} | |
}, | |
"Home | 218": { | |
"link": { | |
"mlid": "218", | |
"plid": "0", | |
"title": "Home", | |
"description": null, | |
"path": "<front>", | |
"path_alias": false, | |
"href": "<front>", | |
"hidden": "0", | |
"external": "1", | |
"has_children": "0", | |
"weight": "0", | |
"depth": "1", | |
"options": [], | |
"localized_options": [] | |
}, | |
"children": [] | |
}, | |
"Decet Proprius Refero | 508": { | |
"link": { | |
"mlid": "508", | |
"plid": "0", | |
"title": "Decet Proprius Refero", | |
"description": "", | |
"path": "node/30", | |
"path_alias": "node-30-article", | |
"href": "node/30", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "1", | |
"weight": "5", | |
"depth": "1", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of trapruspeshu." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of trapruspeshu." | |
} | |
} | |
}, | |
"children": { | |
"Duis Esca Interdico Iustum | 512": { | |
"link": { | |
"mlid": "512", | |
"plid": "508", | |
"title": "Duis Esca Interdico Iustum", | |
"description": "", | |
"path": "node/32", | |
"path_alias": "node-32-article", | |
"href": "node/32", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "0", | |
"weight": "-34", | |
"depth": "2", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of tr." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of tr." | |
} | |
} | |
}, | |
"children": [] | |
} | |
} | |
}, | |
"Cogo Ea Eu Eum | 504": { | |
"link": { | |
"mlid": "504", | |
"plid": "0", | |
"title": "Cogo Ea Eu Eum", | |
"description": "", | |
"path": "node/90", | |
"path_alias": "node-90-page", | |
"href": "node/90", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "1", | |
"weight": "28", | |
"depth": "1", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of sh." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of sh." | |
} | |
} | |
}, | |
"children": { | |
"Vel | 509": { | |
"link": { | |
"mlid": "509", | |
"plid": "504", | |
"title": "Vel", | |
"description": "", | |
"path": "node/53", | |
"path_alias": "node-53-article", | |
"href": "node/53", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "1", | |
"weight": "50", | |
"depth": "2", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of rudretomecha." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of rudretomecha." | |
} | |
} | |
}, | |
"children": { | |
"Nobis Nostrud | 510": { | |
"link": { | |
"mlid": "510", | |
"plid": "509", | |
"title": "Nobis Nostrud", | |
"description": "", | |
"path": "node/71", | |
"path_alias": "node-71-page", | |
"href": "node/71", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "0", | |
"weight": "-25", | |
"depth": "3", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of sw." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of sw." | |
} | |
} | |
}, | |
"children": [] | |
} | |
} | |
} | |
} | |
}, | |
"Accumsan Erat Populus Scisco | 503": { | |
"link": { | |
"mlid": "503", | |
"plid": "0", | |
"title": "Accumsan Erat Populus Scisco", | |
"description": "", | |
"path": "node/40", | |
"path_alias": "node-40-article", | |
"href": "node/40", | |
"hidden": "0", | |
"external": "0", | |
"has_children": "0", | |
"weight": "29", | |
"depth": "1", | |
"options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of giremocrif." | |
} | |
}, | |
"localized_options": { | |
"devel": true, | |
"attributes": { | |
"title": "Description of giremocrif." | |
} | |
} | |
}, | |
"children": [] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment