Skip to content

convert.to_json on scalar should product array #848

@ebhills

Description

@ebhills

Currently, in order to convert a str column to JSON, we have to use the to_list wrangle. That is because to_json outputs the scalar in quotes, but not structured as an array. Let's change the behavior of to_json to wrap the scalr in an array (list) because that's the structure all other wrangles expect.


  - convert.to_json:
      input: Test # abcd

output should be ["abcd"] - currently it is "abcd"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions