Hey guys π
I've got a JSON file in which one of the values is a HTML, tough its kinda strange and I am not sure what is the best way to deal with it.
I'm attaching the value for your reference:
[{\"group_order\":0,\"group_name\":\"1\",\"option_text\":\"\\u003cdiv style=\\\"color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 14.6667px; font-style: normal; font-weight: 400; opacity: 1; vertical-align: baseline; top: auto; position: static;\\\"\\u003e\\u003cp\\u003e reduced visibility \\u0026gt; Heavy Rain\\u003c/p\\u003e\\u003c/div\\u003e\"},{\"group_order\":1,\"group_name\":\"1\",\"option_text\":\"\\u003cdiv style=\\\"color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 14.6667px; font-style: normal; font-weight: 400; opacity: 1; vertical-align: baseline; top: auto; position: static;\\\"\\u003e\\u003cp\\u003e reduced visibility \\u0026gt; Lighting\\u003c/p\\u003e\\u003c/div\\u003e\"},{\"group_order\":2,\"group_name\":\"1\",\"option_text\":\"\\u003cdiv style=\\\"color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 14.6667px; font-style: normal; font-weight: 400; opacity: 1; vertical-align: baseline; top: auto; position: static;\\\"\\u003e\\u003cp\\u003e reduced visibility \\u0026gt; Thunderstorm\\u003c/p\\u003e\\u003c/div\\u003e\"},{\"group_order\":3,\"group_name\":\"1\",\"option_text\":\"\\u003cdiv style=\\\"color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 14.6667px; font-style: normal; font-weight: 400; opacity: 1; vertical-align: baseline; top: auto; position: static;\\\"\\u003e\\u003cp\\u003e reduced visibility \\u0026gt; Windy \\u003c/p\\u003e\\u003c/div\\u003e\"}]
How would you guys suggest I convert this into this format:
[group order] [text] [text]
for example:
0 reduced visibility Heavy Rain
1 reduced visibility Lighting
2 reduced visibility Thunderstorm
3 reduced visibility Windy