I am working on a range of tools which have at there heart the idea of JSON in tiddlywiki. However I think it is not as strait forward as it seems at first glance.
Differences observed;
First consider JSON tiddlers containing tiddlers see Constructing JSON tiddlers
- If we export one or more tiddlers as a JSON file the file contains the tiddlers with each title first.
- If you look inside a plugin you will see it is almost the same but all tiddlers are wrapped in;
{
"tiddlers": {
<!-- all tiddlers here -->
}
- if you import a JSON file and edit the Import Tiddler you will see it follows the same format as 2.
Now consider tiddler containing other data
4. Tiddlers created referencing data tiddlers eg index and listops
5. JSON tiddlers created using the New JSON tools in TW 5.2.3
6. Other JSON layouts for external use eg Example package.json for IIS
7. Tiddlywikis own internal storage of tiddlers and when they are saved through NodeJS
It seems we, at least I, need some shared terminology which helps distinguish between different JSON tiddlers and when and If they contain tiddlers themself or just Arrays or Objects - do we call this Arbitrary JSON data within DataTiddlers
The documentation names the macros used to generate JSON containing tiddlers and you can see the templates used, but it does not quite document the format.