aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/json.py
blob: 95398630f74f0a523b6754270bc14429b8b2b447 (plain)
1
2
3
4
5
6
7
8
9
_json = __import__('json')
loads = _json.loads
dumps = _json.dumps
if hasattr(_json, 'JSONEncodeException'):
	JSONEncodeException = _json.JSONEncodeException
	JSONDecodeException = _json.JSONDecodeException
else:
	JSONEncodeException = TypeError
	JSONDecodeException = ValueError