I use python-spidermonkeyjavascript to run the code.
To pass objects (instead of simple strings) to Python, I am thinking of returning a JSON string.
This seems like a common problem, so I wonder if there are any tools for this built-in to Spidermonkey or python-spidermonkey. (I know about uneval, but this is not intended to be used to serialize JSON - and I would rather not enter a JavaScript block for this.)
source
share