Skip to content

Commit 3bb342d

Browse files
committed
Include keys with empty values in json template
Empty keys like ' ' are not removed on complication
1 parent 6444286 commit 3bb342d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openformats/formats/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _insert_item(self, value, value_position, is_real_stringset):
258258
at_least_one = False
259259

260260
if isinstance(value, (six.binary_type, six.text_type)):
261-
if value != '':
261+
if value.strip():
262262
string = self._get_next_string()
263263
string_exists = string is not None
264264

0 commit comments

Comments
 (0)