Dynamic JSON Datasource
Create a datasource that reads JSON data
Description
This is a work in progress. I don’t recommend using it in a production environment.
How to make it work:
Copy the dynamic_json directoy to the extensions folder of your Symphony CMS installation. You do not need to enable this extension in the Symphony admin to make it work.
Create a new datasource from the admin. Select the “Dynamic XML” datasource type and enter the URL of your JSON data.
Open the new datasource file in your workspace/data-sources/ directory with your favorite editor.
Look inside the “grab” method and change this line:
include(TOOLKIT . ‘/data-sources/datasource.dynamic_xml.php’);
to this:
include(EXTENSIONS . ‘/dynamic_json/lib/datasource.dynamic_json.php’);
Save it and your done.
NOTE: If you make any changes to the datasource from the admin you will need to change the include again.