Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygeoapi/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def json_serial(obj: Any) -> str:
return obj.decode('utf-8')
except UnicodeDecodeError:
LOGGER.debug('Returning as base64 encoded JSON object')
return base64.b64encode(obj)
return base64.b64encode(obj).decode('utf-8')
elif isinstance(obj, Decimal):
return float(obj)
elif type(obj).__name__ in ['int32', 'int64']:
Expand Down