bug? getindex failing retrieve json with $:/temp/... named tiddlers

43 views
Skip to first unread message

Jean-Pierre Rivière

unread,
May 5, 2021, 4:41:21 AM5/5/21
to TiddlyWiki
Be a tiddler of json type whose content is

{ "pleiade": { "name": "Pléiade v2", "project": "pleiade", "url": "https://pleiade.test.acmeserver.com" } }

and now put it in two tiddlers. one is "project" and the othes is "$:/temp/project".

create a tw5 tiddler with this code:

$:/temp/project: {{{ [[$:/temp/project]getindex[/pleiade]] }}}

project: {{{ [[project]getindex[/pleiade]] }}}

and see its outupt:
Message has been deleted

Joshua Fontany

unread,
May 5, 2021, 6:14:34 PM5/5/21
to TiddlyWiki
I could not recreate this in my JsonMangler demo wiki. If  `$:/temp/project` is being created with an action/programatcially, then 
most likely the `type` field is not being set to `application/json`.

Best,
Joshua Fontany

Jean-Pierre Rivière

unread,
May 6, 2021, 2:04:46 AM5/6/21
to TiddlyWiki
Thank you Josh!

You're right. I've just made my test on a new wiki and I can't replicate it. I apologize for the inconvenience. I was pretty sure it was of the correct type but surely I've not been able to spot that.
Reply all
Reply to author
Forward
0 new messages