data1=value1,data2=value2,....
And you want to format them into 'data1':value1, 'data2':value2,...
You could do this quickly using python
def foramtConversion(**items):
print items
then put your values into this foramtConversion() function as parameters, boom, you get what you want, simple like that.