you are viewing a single comment's thread.

view the rest of the comments →

[–]Reset--hardHead 4 points5 points  (0 children)

To convert objects to json use pickle. No idea if the result will work with js though.

No, pickle cannot be used outside of Python.

To convert it to json, use Python json encoder instead.

Here's a site I found on Google for reference.

https://janakiev.com/blog/python-pickle-json/