API: raw.githubusercontent.com
Via wordpress.org the question came in on how to use raw.githubusercontent.com… (see also here) with the free plugin.
Here we go:
[jsoncontentimporter url=https://raw.githubusercontent.com/signorejambo/tank-stock/master/tank-life.json numberofdisplayeditems=-1 basenode=tank]
fish: {subloop-array:fish:-1}quantity: {fish.quantity}<br>{/subloop-array:fish}
plants: {subloop-array:plants:-1}species: {plants.species}<br>{/subloop-array:plants}
[/jsoncontentimporter]
If you use the pro plugin this is the twig-template for that:
{% for level_4_item in _context['tank']['fish'] %}
quantity = {{ level_4_item['quantity'] }}
species = {{ level_4_item['species'] }}
{% endfor %}
{% for level_4_item in _context['tank']['plants'] %}
species = {{ level_4_item['species'] }}
latin = {{ level_4_item['latin'] }}
{% endfor %}
{% for level_4_item in _context['tank']['heaven'] %}
quantity = {{ level_4_item['quantity'] }}
species = {{ level_4_item['species'] }}
reason = {{ level_4_item['reason'] }}
{% endfor %}
