product_id.datahandler({"ID": [], "ProductName": ["Marbel Mabel"], "Description": ["pearl white, natural marbel"] .....})
I have a data as above. I tried to read it as JSON using fromJSON but failed (not all data was parsed (0 chars were parsed out of a total of 39890 chars)). How could i clean product_id.datahandler( and ) first before using fromJSON to read as JSON file?
You could maybe use some
regexto clean the string? Here usingstringr: