cast list

types.castList(format, value)

Arguments

format

no options (other than the default)

value

lists, or valid JSON format arrays to cast

See also

Examples

types.castList(format = "default", value = list())
#> list()
types.castList(format = "default", value = list('key', 'value'))
#> [[1]] #> [1] "key" #> #> [[2]] #> [1] "value" #>
types.castList(format = "default", value = '["key", "value"]') # cast valid json array
#> [[1]] #> [1] "key" #> #> [[2]] #> [1] "value" #>