I h've two strings got from an api url
pagehandle = urllib2.urlopen(ariel_url+"?%s" % params1)
data1 = pagehandle.read();
pagehandle = urllib2.urlopen(ariel_url+"?%s" % params2)
data2 = pagehandle.read();
data1 and data2 contain the following string
{"priority":"HIGH", "titles":["Brand", "Likes"], "values":[["addidas", 130],["nike", 180]]}
{"priority":"HIGH", "titles":["Brand", "Likes"], "values":[["iphone", 49],["ipod", 590]]}
I want to convert these two strings into json and combine (or combine strings and then convert) in such a way that output json may like
{"priority":"HIGH", "titles":["Brand", "Likes"], "values":[["addidas", 130],["nike", 180],["iphone", 49],["ipod", 590]]]}
How can i do this? i prefer to use simplejson library
valueproperty name should be quoted, right?!repr(a_Python_dict)(in which case why don't you omit the repr() and just use the dicts?) or something else ...