summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/json.py
blob: 66d5cfb65b9a6bb633b9d2fc44501e159bdc9bb3 (plain)
1
2
3
4
5
6
7
8
9
10
# A JSON-based API(view) for your app.
# Most rules would look like:
# @jsonify.when("isinstance(obj, YourClass)")
# def jsonify_yourclass(obj):
#     return [obj.val1, obj.val2]
# @jsonify can convert your objects to following types:
# lists, dicts, numbers and strings

from turbojson.jsonify import jsonify