I have a dataframe that contains a field item which is a string having a array of items:
[{"item":"76CJMX4Y"},{"item":"7PWZVWCG"},{"item":"967NBPMS"},{"item":"72LC5SMF"},{"item":"8N6DW3VD"},{"item":"045QHTU4"},{"item":"0UL4MMSI"}]
root
|-- item: string (nullable = true)
I would like to get the item as array of string. Can someone let me know if there is a easy way to do this with default from_json ?
root |-- item: array (nullable = true)
So that I will only have
["76CJMX4Y", "7PWZVWCG", "967NBPMS", "72LC5SMF", "8N6DW3VD", "045QHTU4", "0UL4MMSI"]
Thanks