Author:
qurben
Version:
0.1.0
Released:
24 June 2013
Category:
Other

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

  1. Place the dynamic_json folder in your Symphony extensions directory.
  2. Go to System > Extensions, select "Dynamic JSON Datasource", choose "Enable" from the with-selected menu, then click Apply.

Usage

  1. Go to Blueprints > Data sources and click Create new
  2. Choose a name for your data source
  3. From Source select under From extensions Dynamic JSON
  4. Provide a URL to a valid JSON page
  5. Use an xpath expression to select only a certain piece of the document
  6. Click Create Data Source
  7. 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.

Repository

https://github.com/qurben/dynamic_json

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details