Pylons & Beaker: JSON Encoded Sessions
问题 Need to read Pylons session data (just read, not write to) in node.js Once I decode the base64, I'm left with a string containing a serialized Python object which, is a pain to parse in node.js How can I get Beaker to serialize to JSON instead? For it is far easier for node.js to handle. 回答1: i had to look inside beaker to find what you call "Python serialized strings" are python pickles. i don't think it would be more than a few lines to change it get it to use json to store the dict. here