I have a df and a column with format json like. When I read a row of this df I get this:
"{\"team_welcome\": {\"value\": [\"5\"], \"comment\": \"\"}, \"resources_access\": {\"value\": [\"5\"], \"comment\": \"\"}, \"admission_process\": {\"value\": [\"5\"], \"comment\": \"\"}, \"early_orientation\": {\"value\": [\"5\"], \"comment\": \"\"}, \"hiring_satisfaction\": {\"value\": [\"5\"], \"comment\": \"\"}, \"manager_interaction\": {\"value\": [\"4\"], \"comment\": \"\"}, \"employee_nps_onboarding\": {\"value\": [\"8\"]}, \"employee_nps_onboarding_why\": {\"value\": \"\"}, \"communication_channels_access\": {\"value\": [\"5\"], \"comment\": \"\"}}"
Keys and values can differ from row to row.
How I can open these json like rows and how can I get ride of these "" and \?
I am trying:
r = df[!,:json_column]
x =JSON3.read(r)
But it's failing.
My goals here is to create another dataframe that opens these json rows in columns, each key in a column.
Is there a way to do this in Julia?