[{
"id": 4541,
"iconCls": "icon-blank",
"state": "closed",
"text": "\u9042\u5e73\u53bf\u8fd0\u7ba1\u6240<a href=\"#\" style=\"font-size: 20px; position: absolute; right: 3px;\" onclick=\"setOrg(4541, '\u9042\u5e73\u53bf\u8fd0\u7ba1\u6240', event)\"><\/a>",
"attributes": {
"categoryID": 1004
}
}, {
"id": 4829,
"iconCls": "icon-blank",
"state": "closed",
"text": "\u9a7b\u9a6c\u5e97\u5e02\u8fd0\u9686\u5b9e\u4e1a\u80a1\u4efd\u6709\u9650\u516c\u53f8<a href=\"#\" style=\"font-size: 20px; position: absolute; right: 3px;\" onclick=\"setOrg(4829, '\u9a7b\u9a6c\u5e97\u5e02\u8fd0\u9686\u5b9e\u4e1a\u80a1\u4efd\u6709\u9650\u516c\u53f8', event)\"><\/a>",
"attributes": {
"categoryID": 1005
}
}]
import json
s = '[{
"id": 4541,
"iconCls": "icon-blank",
"state": "closed",
"text": "\u9042\u5e73\u53bf\u8fd0\u7ba1\u6240<a href=\"#\" style=\"font-size: 20px; position: absolute; right: 3px;\" onclick=\"setOrg(4541, '\u9042\u5e73\u53bf\u8fd0\u7ba1\u6240', event)\"><\/a>",
"attributes": {
"categoryID": 1004
}
}, {
"id": 4829,
"iconCls": "icon-blank",
"state": "closed",
"text": "\u9a7b\u9a6c\u5e97\u5e02\u8fd0\u9686\u5b9e\u4e1a\u80a1\u4efd\u6709\u9650\u516c\u53f8<a href=\"#\" style=\"font-size: 20px; position: absolute; right: 3px;\" onclick=\"setOrg(4829, '\u9a7b\u9a6c\u5e97\u5e02\u8fd0\u9686\u5b9e\u4e1a\u80a1\u4efd\u6709\u9650\u516c\u53f8', event)\"><\/a>",
"attributes": {
"categoryID": 1005
}
}]'
data = json.loads(s)
data_id = [i['id'] for i in data]
data_text = [i['text'] for i in data]
[dict(id=x.get('id'), text=x.get('text')) for x in json_data]