Hi Simon I have data which i can form into a json file. > but the problem is that the text field of each entry might contain a line > break. >
Unfortunately, that makes it an invalid JSON file. TiddlyWiki uses the standard JavaScript JSON.parse() function which raises an error if it the file isn't valid. I suspect that the best approach would be to do a search and replace across the file to convert the newlines into \n. Depending on your OS you should be able to Google the commands needed to do that. Best wishes Jeremy > i looked into the exported json files which tiddlywiki creates itself and > it uses a single line for the text field and adds a \n for a line break. > the unfortunate thing is that the line breaks i get from my source can't > be changed to \n using the source. > > is there a solution to that? > > greetings, > simon > > -- > 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.

