You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
import json |
|
|
|
j = """ |
|
{ |
|
"cinemaCode": "304", |
|
"data": [ |
|
{ |
|
"id": "99", |
|
"movieTypeCode": "99", |
|
"movieTypeName": "凸显", |
|
"operateFlag": 2, |
|
"version": 1610439334097 |
|
} |
|
], |
|
"extend": { |
|
"timeStamp": "20210112161534", |
|
"sign": "402EF3B8656E2CC9677271EBEA7A78C9", |
|
"apiFunc": "movieType", |
|
"info": "{\"startDatetime\":0,\"cinemaCode\":\"304\",\"flag\":0,\"dataCount\":1,\"endDatetime\":1610439334097,\"packageCode\":\"f8af7345-a2f0-4ae0-8fc3-7e154a8fa379\"}" |
|
} |
|
} |
|
""" |
|
|
|
d = json.loads(j) |
|
print(d) |
|
|
|
|
|
|
|
|
|
d = { |
|
'cinemaCode': '304', |
|
'data': [ |
|
{ |
|
'id': '99', |
|
'movieTypeCode': '99', |
|
'movieTypeName': '凸显', |
|
'operateFlag': 2, |
|
'version': 1610439334097 |
|
} |
|
], |
|
'extend': { |
|
'timeStamp': '20210112161534', |
|
'sign': '402EF3B8656E2CC9677271EBEA7A78C9', |
|
'apiFunc': 'movieType', |
|
'info': '{\"startDatetime\":0,\"cinemaCode\":\"304\",\"flag\":0,\"dataCount\":1,\"endDatetime\":1610439334097,\"packageCode\":\"f8af7345-a2f0-4ae0-8fc3-7e154a8fa379\"}' |
|
} |
|
} |
|
j = json.dumps(d) |
|
# print(j) |