diff --git a/src/plone/restapi/serializer/converters.py b/src/plone/restapi/serializer/converters.py index 6da75b754..ac286237e 100644 --- a/src/plone/restapi/serializer/converters.py +++ b/src/plone/restapi/serializer/converters.py @@ -71,8 +71,9 @@ def json_compatible(value, context=None): @adapter(Interface) @implementer(IJsonCompatible) def default_converter(value): - if value is None: - return value + if value is None or repr(value) == "": + # None or node.utils.Unset + return None if type(value) in (str, bool, int, float, int): return value