I have a JSON file which is a valid dump of tiddlers. When I want to import it as text into a single HTML file wiki, I have to:
create a new tiddler
set its content type to text
open the JSON file in a text editor, select everything, copy, then paste it into the text field of the new tiddler, then save the tiddler
If I try to import it via TiddlyWiki’s Import button, it makes the assumption for me and only suggests importing the JSON content as separate tiddlers. There’s nothing like an “Import as plain text” checkbox in the Import tiddler dialog.
Is there an easier way than the described above to import a JSON file as a piece of text?
I like this method because it seems like an easy way to intercept the import process and perform my own custom import. I could be wrong but it seems to miss a step.
The new JSON tiddler created is using $:/Import format like this
which is different from the original tiddlers JSON format [ { "title": "..<title>...", "text": "..<text>...", …} ... ]. So IF the original tiddlers JSON format is required, another step is needed to extract from “tiddlers” ?
I tried an alternate approach using dropzone, which is how I do custom import :
This seems to work as the content of the JSON tiddlers are indeed imported into the text field of the new tiddler, but the type is “application/json” ?