Dear all, heavy user and rare poster here. Using TW has become a daily treat for me, but I have managed to still stay at the surface so far. Now, I have to dive in deeper.
I have been using TW so far to store semi-structured information, but now I need to integrate structured information, i.e. a database featuring an 1:n relation. I thought it might be a good idea using JSON. I also thought, for my purposes, I don't want to mimic an RDBMS in TW with all the primary key hassles and a deluge of .TID files (I am running TW on Node.js), so I wanted to use a JSON tiddler for the entities and use arrays in JSON for sub-entities. I came across Joshua Fontenay's JSONMangler plugin (Kudos, Josh!) and so far so good. BUT Eventually I want to implement CRUD (create-retrieve-update-delete) functionalities for this special data. And I want to display the 1:n relation in a single tiddler. And this is where I'm stuck at the moment: - how to get the total number of array items in a JSON array in order to be able to display the 1:n apart from the variable array length, the JSON structure is fix, so everything else should be fairly straightforward. OK, there are some numeric fields in the array I need to sum up, but one thing after the other... Any insight would be greatly appreciated Best, Werner -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/da6d99bc-43b7-4b30-a349-3aa750c76a1cn%40googlegroups.com.