Will this be possible in sed ?
I want to replace , in tuple start with [ and end with ] to |
"platform": "iPhone","report_attrs": {"SKU": "XYZ123","Unit Price": "32.25","Qty": "3"},"screen_flow":["Main","Login"] "platform": "android","report_attrs": {"SKU": "XYZ123","Unit Price": "32.25","Qty": "3"} output :
"platform": "iPhone","report_attrs": {"SKU": "XYZ123","Unit Price": "32.25","Qty": "3"},"screen_flow":["Main"|"Login"] "platform": "android","report_attrs": {"SKU": "XYZ123","Unit Price": "32.25","Qty": "3"} If not possible any other solution will be appreciated.
Thank you.