Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf8 -*-
- arr = [
- {
- "currency": "VND",
- "medical_services_limit": {
- "2944": "",
- "2947": "90.000.000 VN\u0110",
- "2948": "4.500.000 VN\u0110",
- "2949": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2950": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2951": "",
- "2952": "4.500.000 VN\u0110",
- "2953": "4.500.000 VN\u0110",
- "2954": "4.500.000 VN\u0110",
- "2955": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2956": "9.000.000 VN\u0110",
- "2957": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2958": "90.000 VN\u0110",
- "2959": "2.000.000 VN\u0110",
- "2960": "450.000 VN\u0110",
- "2961": "",
- "2962": "Theo gi\u1edbi h\u1ea1n ph\u1ee5 1- \u0110i\u1ec1u ki\u1ec7n C",
- "2963": "Theo gi\u1edbi h\u1ea1n ph\u1ee5 1- \u0110i\u1ec1u ki\u1ec7n C",
- "2964": "Theo gi\u1edbi h\u1ea1n ph\u1ee5 1 v\u00e0 2- \u0110i\u1ec1u ki\u1ec7n C",
- "2965": "",
- "2966": "9.000.000 VN\u0110",
- "2967": "2.700.000 VN\u0110",
- "2968": "60.000 VN\u0110",
- "2969": "2.700.000 VN\u0110",
- "2970": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2972": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2973": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2974": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2908": "200.000.000 VN\u0110",
- "2909": "Theo ba\u0309ng ty\u0309 l\u00ea\u0323 tr\u1ea3 ti\u1ec1n b\u1ea3o hi\u1ec3m th\u01b0\u01a1ng t\u1eadt",
- "2910": "40.000.000 VN\u0110",
- "2911": "30.000.000 VN\u0110",
- "2912": "Vi\u1ec7t Nam\t\t",
- "2937": "To\u00e0n c\u1ea7u",
- "2939": "Vi\u1ec7t Nam\t\t",
- "2940": "T\u1eed vong, t\u00e0n t\u1eadt to\u00e0n b\u1ed9 v\u0129nh vi\u1ec7n do \u1ed1m \u0111au, b\u1ec7nh t\u1eadt, thai s\u1ea3n",
- "2941": "200.000.000 VN\u0110",
- "2943": "Chi ph\u00ed n\u1eb1m vi\u1ec7n, ph\u1eabu thu\u1eadt v\u00e0 chi ph\u00ed kh\u00e1c do \u1ed1m \u0111au, b\u1ec7nh t\u1eadt, thai s\u1ea3n"
- },
- "age_groups_premium": {
- "2064": "1.800.000 ",
- "2059": "400.000 ",
- "2060": "180.000 "
- },
- "name": "Ch\u01b0\u01a1ng tr\u00ecnh 1 ",
- "treatment_area": "Vi\u1ec7t Nam "
- },
- {
- "currency": "VND",
- "medical_services_limit": {
- "2944": "",
- "2947": "150.000.000 VN\u0110",
- "2948": "7.500.000 VN\u0110",
- "2949": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2950": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2951": "",
- "2952": "7.500.000 VN\u0110",
- "2953": "7.500.000 VN\u0110",
- "2954": "7.500.000 VN\u0110",
- "2955": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2956": "15.000.000 VN\u0110",
- "2957": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2958": "150.000 VN\u0110",
- "2959": "2.000.000 VN\u0110",
- "2960": "750.000 VN\u0110",
- "2961": "",
- "2962": "Theo gi\u1edbi h\u1ea1n ph\u1ee5 1- \u0110i\u1ec1u ki\u1ec7n C",
- "2963": "Theo gi\u1edbi h\u1ea1n ph\u1ee5 1- \u0110i\u1ec1u ki\u1ec7n C",
- "2964": "Theo gi\u1edbi h\u1ea1n ph\u1ee5 1 v\u00e0 2- \u0110i\u1ec1u ki\u1ec7n C ",
- "2965": "",
- "2966": "15.000.000 VN\u0110",
- "2967": "4.500.000 VN\u0110",
- "2968": "60,000 VN\u0110",
- "2969": "4.500.000 ",
- "2970": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2972": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2973": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2974": "Kh\u00f4ng b\u1ea3o hi\u1ec3m",
- "2908": " 300.000.000 VN\u0110",
- "2909": "Kh\u00f4ng b\u1ea3o hi\u1ec3m ",
- "2910": "60.000.000 VN\u0110",
- "2911": "60.000.000 VN\u0110",
- "2912": "Vi\u1ec7t Nam VN\u0110",
- "2937": "To\u00e0n c\u1ea7u",
- "2939": "Vi\u1ec7t Nam\t",
- "2940": "T\u1eed vong, t\u00e0n t\u1eadt to\u00e0n b\u1ed9 v\u0129nh vi\u1ec7n do \u1ed1m \u0111au, b\u1ec7nh t\u1eadt, thai s\u1ea3n",
- "2941": "300.000.000 VN\u0110",
- "2943": "Chi ph\u00ed n\u1eb1m vi\u1ec7n, ph\u1eabu thu\u1eadt v\u00e0 chi ph\u00ed kh\u00e1c do \u1ed1m \u0111au, b\u1ec7nh t\u1eadt, thai s\u1ea3n"
- },
- "age_groups_premium": {
- "2064": "2.550.000 ",
- "2059": "600.000",
- "2060": "270.000 "
- },
- "name": "Ch\u01b0\u01a1ng tr\u00ecnh 2 ",
- "treatment_area": "Vi\u1ec7t Nam "
- },
- {
- "currency": "VND",
- "medical_services_limit": {
- "2944": "",
- "2947": " 300.000.000 VN\u0110",
- "2948": " 15.000.000 VN\u0110",
- "2949": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2950": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2951": "",
- "2952": " 15.000.000 VN\u0110",
- "2953": " 15.000.000 VN\u0110",
- "2954": " 15.000.000 VN\u0110",
- "2955": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2956": "30.000.000 VN\u0110",
- "2957": "T\u1ed1i \u0111a \u0111\u1ebfn s\u1ed1 ti\u1ec1n b\u1ea3o hi\u1ec3m",
- "2958": "300.000 VN\u0110",
- "2959": "2.000.000 VN\u0110",
- "2960": ""
- }
- }
- ]
- from appdirs import unicode
- fo = open("data.json", "w", encoding="utf8")
- for obj in arr:
- for key, val in obj["medical_services_limit"].items():
- val = str.encode(val).decode('utf8')
- import json
- json.dump({"arr": arr}, fo, ensure_ascii=False)
- fo.flush()
- fo.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement