Hello,
Tiddlywiki is incredible : versatile, efficient, fast and a sustainable solution, saving a lot of energy: no backend code, no remote DB, no trouble… I definitively love it even if I’m still at the beginning of my learning journey.
When I try to render data extracted from json retrieved from a tiddler, I can’t get rid of quotes and I can’t figure on which filter I could rely on to properly render encoded field.
considering a tiddler with a jsondata field containing
[{ “author”: “John Doe”, “date”: “202310161515”, “comment”: “This was so “nice”…\nto just try…”},{ “author”: “Paul”, “date”: “202310161518”, “comment”: “”}]
Once processed, it renders as:
Why is each value enclosed by quotes ? how to improve my tiddler to manage properly the conversion (author as html, comment as json sting and date) ?
<$list filter="[<currentTiddler>get[jsondata]jsonindexes[]]" variable="index">
<$text text={{{ [<currentTiddler>get[jsondata]jsonextract<index>jsonextract[author]] }}}/> on
<$text text={{{ [<currentTiddler>get[jsondata]jsonextract<index>jsonextract[date]] }}}/> said :
<$text text={{{ [<currentTiddler>get[jsondata]jsonextract<index>,[comment]] }}}/>
</$list>
Best regards,
Guilhem
PS : Surprisingly, thanks to tiddlywiki my confidence in my coding skill increased when I tried to get answers from chatGPT: so many excuses and so many wrong answers