Dynamic JSON Datasource
Adds a Dynamic JSON Datasource
Description
Dynamic JSON Datasource
- Version: 0.1.0
- Author: Gerben Oolbekkink
- Requirements: Symphony 2.3.2
Description
With more and more API's switching to pure JSON --think of Twitter, Rottentomatoes, etc-- sometimes there is no option but to use a JSON API. This extension allows you to create a JSON-based datasource just like an XML-based datasource; the JSON is converted to XML in the backend and provided to the frontend as pure XML.
Installation
- Place the
dynamic_json
folder in your Symphonyextensions
directory. - Go to System > Extensions, select "Dynamic JSON Datasource", choose "Enable" from the with-selected menu, then click Apply.
Usage
- Go to Blueprints > Data sources and click Create new
- Choose a name for your data source
- From Source select under From extensions Dynamic JSON
- Provide a URL to a valid JSON page
- Use an xpath expression to select only a certain piece of the document
- Click Create Data Source
- Treat your newly created data source as any other Dynamic XML data source
Hints
To see the XML generated from this data source just add it to a page and use the Debug Devkit (?debug) to inspect the XML.
Notes
This extension is still in development, so use it at your own risk. It should work just as stable as Dynamic XML. Be aware of the fact that the XML structure may change after updating to a next version; it is now just made to work, tidying up is next.