<commit_before># Dynamic JSON Datasource

- Version: 0.1.0
- Author: <NAME>
- 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.<commit_msg>Markdown style fix<commit_after># Dynamic JSON Datasource

- Version: 0.1.0
- Author: <NAME>
- 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.
{'fraction_non_alphanumeric': 0.04934099357891179, 'fraction_numerical': 0.01013856032443393, 'mean_word_length': 3.9915682967959527, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5334196', 'n_tokens_mistral': 803, 'n_tokens_neox': 780, 'n_words': 489}