Hi Mat Some history that may help… data tiddlers were added quite close to the start of TW5. They were part of the work to implement colour palettes; I was concerned about the proliferation of tiddlers if each system colour were to be given its own tiddler.
https://github.com/Jermolene/TiddlyWiki5/commit/baff9016858133d300a9662ffd1782568454f8eb My initial intention was to provide support for generic JSON tiddlers, with syntax to address individual items within such a tiddler. Data tiddlers would have been one of a number of alternative representations for specific schemas. Joshua is now exploring ideas along those lines. But my gradual conclusions were that: * Adding the “index” mechanism for addressing items within a data tiddler introduced a lot of complexity right across the code base that is still there today * Figuring out an addressing mechanism for items within a JSON object would end up re-inventing something as complex as JSONPath * Proliferation of tiddlers isn’t actually a problem for performance with the core. The problem is more cognitive; too many random tiddlers and most of our lists become useless. There are lots of ways we can address that issue — for things like palettes I would we might pack the individual tiddlers into a plugin We do of course also use JSON as a container format for tiddler files, but that is handled by the import mechanism. Best wishes Jereym > On 23 Jul 2019, at 02:32, Mat <[email protected]> wrote: > > What is the point with JSON tiddlers over regular tiddlers? What do they > enable and what limitations are there? > > One point that I do get is that other software often has the possibility to > export/import JSON so it could enable data transfer with TW. > > There does not seem to be an advantage when it comes to data tiddlers because > the JSON data tiddlers can only be on the JSON root level whereas a regular > tiddler is deeper. > > One reason why I'm asking is because I hope to build a UI for Jeds > FederationCore plugin > <https://ooktech.xyz:8443/Public#%24%3A%2Fplugins%2FFederation%2FFederationCore> > that extracts data from the so called tiddler "bundle" which is the format > that fetched tiddlers come in. Bundles can be packed into a special bundle > format or into JSON. > > Thank you! > > <:-) > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywikidev/c8c24a82-a99e-402b-8b79-e6ff02ff8184%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywikidev/c8c24a82-a99e-402b-8b79-e6ff02ff8184%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/8DD246CA-E5BC-49A3-AB78-47281258AEEF%40gmail.com.
