Skip to content

Commit cc1fa59

Browse files
committed
decode json
1 parent 7d53336 commit cc1fa59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/libcommon/src/libcommon/viewer_utils/features.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ def get_cell_value(
445445
storage_client=storage_client,
446446
json_path=json_path,
447447
)
448+
elif isinstance(fieldType, Json):
449+
return fieldType.decode_example(cell) if fieldType.decode else cell
448450
elif isinstance(fieldType, list):
449451
if not isinstance(cell, list):
450452
raise TypeError("list cell must be a list.")
@@ -535,7 +537,6 @@ def get_cell_value(
535537
Array5D,
536538
Translation,
537539
TranslationVariableLanguages,
538-
Json,
539540
),
540541
):
541542
return cell

0 commit comments

Comments
 (0)