The current result of writing the table values to a file will create malformed JSON in the linestring. For example:
"[{'"x'": -118.342949, '"y'": 34.078279}, {'"x'": -118.342962, '"y'": 34.07617}]"
There is an alternating single and double quote around the x and y keys.
A proposed solution would be to wrap the x and y keys with double quotes and the array with single quotes.
For example:
'[{"x": -118.342949, "y": 34.078279}, {"x": -118.342962, "y": 34.07617}]'
This would allow the string to be loaded as a dictionary in python.
The current result of writing the table values to a file will create malformed JSON in the linestring. For example:
"[{'"x'": -118.342949, '"y'": 34.078279}, {'"x'": -118.342962, '"y'": 34.07617}]"
There is an alternating single and double quote around the x and y keys.A proposed solution would be to wrap the x and y keys with double quotes and the array with single quotes. For example:
'[{"x": -118.342949, "y": 34.078279}, {"x": -118.342962, "y": 34.07617}]'
This would allow the string to be loaded as a dictionary in python.