Package eggbasket :: Module json
[hide private]

Source Code for Module eggbasket.json

 1  # A JSON-based API(view) for your app. 
 2  # Most rules would look like: 
 3  # @jsonify.when("isinstance(obj, YourClass)") 
 4  # def jsonify_yourclass(obj): 
 5  #     return [obj.val1, obj.val2] 
 6  # @jsonify can convert your objects to following types: 
 7  # lists, dicts, numbers and strings 
 8   
 9  from turbojson.jsonify import jsonify 
10