DEPRECATED (use pandoc 2 Lua filters instead): Custom json writer for portable pandoc filtering without external programs