I'm pulling in some JSON from a server in the given format:
{"images": [{"rating": 5.0, "thumburl": "http://something.jpg", "description": "dfgd", "submitdate": "2011-01-29T07:54:02", "submituser": "J", "imagekey": "a"}, ...]}
I have to add a new element "viewurl" to each element using the "imagekey." For example, the result would be
{"images": [{"rating": 5.0, "thumburl": "http://something.jpg", "description": "dfgd", "submitdate": "2011-01-29T07:54:02", "submituser": "J", "imagekey": "a", "viewurl": "/view?imagekey=a"}, ...]}
There's probably an easy way to do this, but I'm having trouble finding much on simplejson other than dumps and load.