Ed, I myself love JSON and dictionary tiddlers as they are very handy, compact and encapsulate things in one pack! On the other hand, it seems Jeremy supports using fields as first class citizens in Tiddlywiki! Also, it seems *TW 5.2.0* is coming soon and it supports field names with almost all characters! So the restrictions on field names will be lifted!
This is my 2 cents! But, let the developers come and advise! Best wishes Mohammad On Thu, Jun 10, 2021 at 9:40 PM Ed Heil <[email protected]> wrote: > Right now I'm working on a project where a number of tiddlers are just > little chunks of key-value data. I'm putting them in JSONTiddlers, because > that seems to be what tiddlers turn into naturally when I start setting > data on their indices. > > I just noticed that there's a nice thing available for tiddlers which are > collections of *fields* as opposed to using indices, and that's: > > [field:foo<bar>] which gives you all the tiddlers whose foo field is equal > to the value of the variable "bar". There's not a simple equivalent with > indices as far as I know, you have to cobble together a filter with > [filter[]] or the new :filter prefix. > > Obviously with fields you're more limited in the names of keys -- keys can > be any string in data tiddlers, but only lowercase, "-", "_", and "." for > fields. And obviously there are reserved names for fields, like "text", > that are not reserved for data tiddlers. > > I *think* I made the right choice going with a data tiddler for my little > blobs of data, but that nice [field[]] filter operator made me wonder. > > Just wanted to throw the question open to the community: If you've used > tiddlers as blobs of key-value data, and made the choice between using the > fields in a normal tiddler, and using a data tiddler, what considerations > factored into your decision? Do you have any rules of thumb? > > I'm not asking because of a particular decision I need to make, I'm more > curious about the general question. > > (Oh, secondarily: any reason to choose one or the other of Dictionary vs > JSON? They seem to do pretty much the same job to me.) > > Thanks! > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/d7c6875b-8edd-40e8-9a3a-e07dea33c4f1n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/d7c6875b-8edd-40e8-9a3a-e07dea33c4f1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMB7_eiAiJve-TUxNY2XKtoW4VG%3DtO1ENbHO3VjgC-zjcw%40mail.gmail.com.

