Hi there, haven’t been here for quite a while. Regular TW user but not coding frequently enough to gain routine.
Anyway, I wanted to use version 5.2.5. to upgrade some Wikitext code I did about two years ago. I used Josh Fontenay’s JSONMangler plugin then, but wanted to upgrade the code to the new json.data access function (BTW thanks so much for including these).
I have a set of JSON data tiddlers which are doubly nested, and I want to iterate through them to display their content in a tabular way.
I started out using the instructions in this thread: How to iterate on a dictionary (and an array) from a json data tiddler? - Discussion - Talk TW (tiddlywiki.org), and was able to access individual tiddlers, but failed when trying to loop through them, like this:
<$list filter="[tag[myTag]type[application/json]]" variable="myVar">
<!-- this works -->
{{{ [<myVar>get[text]] }}}
<!-- this doesn't work -->
{{{ [<myVar>jsonget[myJSONkey] }}}
</$list>
Any clue what I am getting wrong here. How do json… function behave in a different way when accessing a tiddler?
On a side note: would it be possible to include jsonget[] in a list filter in order to filter for a given json key? Tried it, but, as expected, no avail.
Thanks so much for helping me out on this. Still can’t seem to wrap my head around certain concepts and intricacies.