This page demonstrates how you can load JSON, modify it and create a new JSON. In this example this new JSON is used to plot a chart.
- Name of JCI-Template: jsonproxy
- URL: https://api.json-content-importer.com/extra/json/amchart.json
- twig template:
{{ _context | json_encode | upper }}
Example in action:
[{“CATEGORY”:”RESEARCH”,”VALUE”:10},{“CATEGORY”:”MARKETING”,”VALUE”:2},{“CATEGORY”:”DISTRIBUTION”,”VALUE”:3}]Adding “?show=oc” to the URL removes the WordPress-Temaplte:
https://api.json-content-importer.com/json-amchart-input/?show=oc
By using only the Shortcode on a page gives you JSON.