Hi Danielo Currently you'll have to roll your own function to convert a list of tiddlers into JSON along the lines you've quoted.
I think the wiki object should probably have a getTiddlersAsJson() that takes an array of tiddler titles and returns those tiddlers in a JSON array. And maybe we should have a method on the tiddler object to return a hashmap of all fields in string format. Best wishes Jeremy. On Sat, Dec 6, 2014 at 9:16 AM, Danielo Rodríguez <[email protected]> wrote: > Ok, > > I think I have one solution: to build my own function to get a tiddler > ready to stringify as JSON. Basically is the same function that > getTiddlerAsJson but without the JSON part: > > function (title) { > var tiddler = this.getTiddler(title); > if(tiddler) { > var fields = Object.create(null); > $tw.utils.each(tiddler.fields,function(value,name) { > fields[name] = tiddler.getFieldString(name); > }); > return fields; > } else { > return undefined; > } > } > > El sábado, 6 de diciembre de 2014 10:03:54 UTC+1, Danielo Rodríguez > escribió: > >> No one have an approach that works? >> >> This is a major issue for me and I have no Idea how to fix it. Sorry for >> insist. >> > -- > 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 post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

