Hi! That's strange, the example JSON looks fine and under the hood, terns.to-patterns just calls json.dumps. How does the whole JSONL file look? Any weird line endings or something like that?
Hi, Ines! I had the encoding issue. The terms.to-patterns created the file not encoded in "UTF-8" (аlthough python -c 'import sys; print(sys.getdefaultencoding()) returns utf-8 ). I had changed the encoding by Notepad++ then I got "Invalid JSON" error. Now I'm doing it in another way and it works for me.
Thanks!