I have the following string(with new lines after each value): " value1 value2 value3 " I need to convert it to a json array(using python) in the following format:
{"keywords": [{"keyword": "value1"},{"keyword": "value2"},{"keyword": "value3"}]}
I tried all kinds of methods, always resulting in invalid json. Any suggestions?