diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index 0ee8753..2f5f713 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -182,7 +182,7 @@ class _Value: if self.config.is_hidden(key, None) is False: if flatten: nkey = key.split('.')[-1] - elif len_parent is not None: + elif not fullpath and len_parent is not None: nkey = key[len_parent:] else: nkey = key