解码未知键的 json 字符串
GitHub - tidwall/gjson: Get JSON values quickly - JSON parser for Go https://github.com/tidwall/gjson
import json
s ="[[['o3', 'pm10', 'pm2_5'], ['pm2_5']], [[196.5, 223.5], [181.31, 218.69]]]"
s1 ="[[['o3', 'pm10', 'pm2_5']], [[196.5, 223.5]]]"
s=s.replace("'",'"')
s1=s1.replace("'",'"')
list_ = json.loads(s)
list_1 = json.loads(s1)
s ="[[['o3', 'pm10', 'pm2_5'], ['pm2_5']], [[196.5, 223.5], [181.31, 218.69]]]"
s1 ="[[['o3', 'pm10', 'pm2_5']], [[196.5, 223.5]]]"
s=s.replace("'",'"')
s1=s1.replace("'",'"')
list_ = json.loads(s)
list_1 = json.loads(s1)