Skip to content
Snippets Groups Projects
Commit 4521af75 authored by jkerdreu's avatar jkerdreu
Browse files

Added missing file


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2529 b32b6428-25c9-4566-ad07-03861ab6144f
parent 809c1c02
No related branches found
No related tags found
No related merge requests found
import rapidjson
"""
Since version 0.7 xAAL msg are CBOR encoded, this means w/ addresses now
use Cbor UUID tag. So to avoid error w/ JSON encoder of UUID, we need to
use rapidjson that provide UUID to JSON. This wrapper module provide this
to sio package.
"""
def dumps(*args,**kwargs):
obj = args[0]
return rapidjson.dumps(obj,uuid_mode=rapidjson.UM_CANONICAL)
loads = rapidjson.loads
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment