Not sure what you mean by "without using tools" -- Python is "a tool", right?
With just Python and its standard library (2.6 or better), add at the top of your module
import json
and change the return
statement to
return json.dumps(message)
Alex Martelli
2010-09-04 05:20:06