- pic.extra_info = info.to_dict()
- areas_json = pic.areas_json
- for field in areas_json[u'things'].values():
- field[u'object'] = field[u'object'].capitalize()
- pic.areas_json = areas_json
+ pic.extra_info = json.dumps(info.to_dict())
+ areas_json = json.loads(pic.areas_json)
+ for field in areas_json['things'].values():
+ field['object'] = field['object'].capitalize()
+ pic.areas_json = json.dumps(areas_json)