Cast object data which is lists or valid JSON.

types.castObject(format, value)

Arguments

format

no options (other than the default)

value

object to cast

See also

Examples

types.castObject(format = "default", value = list())
#> list()
types.castObject(format = "default", value = "{}")
#> named list()
types.castObject(format = "default", value = '{"key": "value"}')
#> $key #> [1] "value" #>