(list_value: list)
| 266 | parsed = load_json(value.decode("utf8")) |
| 267 | |
| 268 | def convert_list(list_value: list): |
| 269 | output = [] |
| 270 | |
| 271 | for value in list_value: |
| 272 | if isinstance(value, list): |
| 273 | # For nested arrays |
| 274 | output.append(convert_list(value)) |
| 275 | elif isinstance(value, str): |
| 276 | output.append(converter(value)) |
| 277 | else: |
| 278 | output.append(value) |
| 279 | |
| 280 | return output |
| 281 | |
| 282 | if isinstance(parsed, list): |
| 283 | return convert_list(parsed) |
no test coverage detected