language: Python (python 2.7.3)
date: 505 days 14 hours ago
link:
visibility: public
1
2
3
4
5
6
7
import json
 
txt = '{field1:"a",field2:"b"}{field1:"c",field2:"d"}{field1:"e",field2:"f"}'
 
objects = map(lambda x: '{'+x+'}', txt.strip('{}').split('}{'))
 
print repr(objects)