i need to convert some data into JSON, an example is this:
{metadata:{schemaDefinitionVersion:1.},attributes:{PreferenceFrequencies:[{p:{t:"c",v:{t:"2022-10-25T16:03:19.725Z",o:"test"}},v:{t:"m",v:{response:{t:"s",v:"often"},category:{t:"s",v:"premium"}}}}]}}
i want to wrap double quotes around all the values, how do i do that efficiently?
Desired result:
[{"metadata":{"schemaDefinitionVersion":"1."},"attributes":{"PreferenceFrequencies":[{"p":{"t":"c","v":{"t":"2022-10-25T16:03:19.725Z","o":"test"}},"v":{"t":"m","v":{"response":{"t":"s","v":"often"},"category":{"t":"s","v":"premium"}}}}]}}]
Preferably i want to do this in Redshift but if it's not easy then Python will work as well. Thank you!