tools (common/data_format): use "default" in json.dumps in serialise (useful notably to serialise jid.JID)
This commit is contained in:
parent
51fef1d271
commit
f83e4f3334
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ def serialise(data):
|
|||
|
||||
@return(unicode): serialised data, can be transmitted as string to the bridge
|
||||
"""
|
||||
return json.dumps(data, ensure_ascii=False)
|
||||
return json.dumps(data, ensure_ascii=False, default=unicode)
|
||||
|
||||
def deserialise(serialised_data, default=None, type_check=dict):
|
||||
"""Deserialize data from bridge
|
||||
|
|
|
|||
Loading…
Reference in a new issue