Just had a try of that script.
I noticed that for it to work you need to import a couple of modules (import os, json) and modify some indents.
Also (unless I have broken your script somehow):
- Any JSON files that were actually Joplin metadata (tags, notebook names, records of attached files) are lost as they get turned into notes,
- You have to attach any resources again. They are all in the previously exported resources folder but do not get imported (because of item 1?),
- On some notes extra carriage returns are generated which can break up tables,
- The note title is also now the first line of any imported note even it it wasn’t originally (very minor point).
I am not a Python programmer so I must ask you if I have missed out any important stage / module? This is just so that I can try to learn a bit more about Python from what you have done…
BUT REGARDLESS
If anyone was ever in such a fix as yourself, it would save a huge amount of typing just to get all the note text back. Pretty impressive for just a few lines of Python!!