dont break the api root with our custom json encoder
@@ -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,
