Skip to content
Snippets Groups Projects
Commit 27484bd0 authored by jkerdreu's avatar jkerdreu
Browse files

Fix the UUID bug in REST API (rapidjson)



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2537 b32b6428-25c9-4566-ad07-03861ab6144f
parent d5790efb
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ from xaal.monitor import Monitor
from bottle import default_app,debug,get,request,response,redirect,static_file
import json
from . import json
import os
import platform
import logging
......
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