dont break the api root with our custom json encoder
This commit is contained in:
parent
ead6de24ae
commit
44b2f828ab
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ def _preencode(data, magic_marker, in_coords=False, in_groups=False):
|
|||
if isinstance(data, dict):
|
||||
data = data.copy()
|
||||
for name, value in tuple(data.items()):
|
||||
if name == 'bounds':
|
||||
if name == 'bounds' and isinstance(value, (tuple, list)):
|
||||
data[name] = magic_marker+json.dumps(value)+magic_marker
|
||||
else:
|
||||
data[name] = _preencode(value, magic_marker,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue