Hi Chris Great, that's very helpful, thank you.
TW5 allows tiddlers to have the type "application/json", and I still don't >> see why that is wrong. >> > > This is one issue. I'm not sure it is wrong but it might be > incomplete. A tiddler which contains JSON should say so in some > fashion, but there are different types of tiddlers which contain JSON. > Some of them are aggregates of tiddlers, a form that TW5 has awareness > of what to do with. Some of them are raw JSON of a form that TW5 doesn't > know what to do with. It (seems to me that it) would be better if that > decision making was controlled by the type field rather inspection of > the contents of the text field, or some other field (if, in fact, that > is what is going on). Just to be clear, this issue is independent? I mean, if we fixed the PUTting and GETting content-type TiddlyWiki could continue to use tiddlers with the type field set to "application/json" without any limitations or peculiarities? Meaning that this is a local issue around TW5's handling of JSON? Anyhow, I think the fact that the first JSON tiddler you saw happened to be a bundle of tiddlers is perhaps a red herring. TiddlyWiki5 has JSON tiddlers as first class citizens, and they are used for all kinds of purposes by the core, and can be freely employed by users too. The role of a JSON tiddler is determined by its fields (typically tags, but it could be any criteria), just as the role of a wikitext tiddler is determined by its fields rather than a subtype of wikitext. > Some of them are raw JSON of a form that TW5 doesn't know what to do with There aren't any JSON tiddlers that TW5 doesn't know what to do with; it has features to enable it to deal with any arbitrary JSON in tiddlers (I plan more, such as a hierarchical JSON editor). > TW5 uses "application/json" as the content type for PUTting modifications >> to the server; at one point I thought that this discussion was suggesting >> that the content-type for PUTting should be something else. >> > > This is the other issue. I've conceded that the content-type for > PUTting and GETting should be something different. That clarifies things, thank you. Best wishes Jeremy -- Jeremy Ruston mailto:[email protected] -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
