Skip to content

Instantly share code, notes, and snippets.

@codysoyland
Created March 18, 2010 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codysoyland/336541 to your computer and use it in GitHub Desktop.
Save codysoyland/336541 to your computer and use it in GitHub Desktop.
from piston.handler import BaseHandler
from piston.emitters import Emitter
def serialize(data):
return Emitter(data, {}, BaseHandler).construct()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment