I have a string like this:
'{"po": 118.0, "count": 1.0}, {"po": 124.0, "count": 1.0}, {"po": 132.0, "count": 2.0}'
I want to split this string and save them into a list like this using python:
['{"po": 118.0, "count": 1.0}', '{"po": 124.0, "count": 1.0}', '{"po": 132.0, "count": 2.0}']
When I do this :
r=re.split(r"['{}']", s)
But I receive this result, which is not what I want :
['', '"po": 118.0, "count": 1.0', ', ', '"po": 124.0, "count": 1.0', ', ', '"po": 132.0, "count": 2.0', '']
Would you please guide me on how to use a regular expression to split the string?
Any help is really appreciated.