python json.loads 报错
ss=['{"defaultModel":{"bannerDO":{"success":true},"deliveryDO":{"areaId":110101,"deliveryAddress":"意大利","deliverySkuMap":{"4510639669311":[{"arrivalNextDay":false,"arrivalThisDay":false,"forceMocked":false,"money":"0.00","name":"运费","postageFree":true,"skuDeliveryAddress":"意大利","type":1}],"4549633316963":[{"arrivalNextDay":false,"arrivalThisDay":false,"forceMocked":false,"money":"0.00","name":"运费","postageFree":true,"skuDeliveryAddress":"意大利","type":1}],"default":[{"arrivalNextDay":false,"arrivalThisDay":false,"forceMocked":false,"money":"0.00","name":"运费","postageFree":true,"skuDeliveryAddress":"意大利","type":1}],"4549633316962":[{"arrivalNextDay":false,"arrivalThisDay":false,"forceMocked":false,"money":"0.00","name":"运费","postageFree":true,"skuDeliveryAddress":"意大利","type":1}],"4510639669310":[{"arrivalNextDay":false,"arrivalThisDay":false,"forceMocked":false,"money":"0.00","name":"运费","postageFree":true,"skuDeliveryAddress":"意大利","type":1}],"4549633316961":[{"arrivalNextDay":false,"arrivalThisDay":false,"forceMocked":false,"money":"0.00","name":"运费","postageFree":true,"skuDeliveryAddress":"意大利","type":1}],"4549633316960":[{"arrivalNextDay":false,"arrivalThisDay":false,"forceMocked":false,"money":"0.00","name":"运费","postageFree":true,"skuDeliveryAddress":"意大利","type":1}]},"destination":"北京市","expressServiceMap":{"4549633316960":[null],"4549633316961":[null],"4510639669311":[null],"4549633316962":[null],"4549633316963":[null],"4510639669310":[null]},"shipTimeMap":{},"success":true,"transfername":"菜鸟郑州保税3号仓"},"detailPageTipsDO":{"crowdType":0,"hasCoupon":true,"hideIcons":false,"jhs99":false,"minicartSurprise":0,"onlyShowOnePrice":false,"priceDisplayType":4,"primaryPicIcons":[],"prime":false,"showCuntaoIcon":false,"showDou11Style":false,"showDou11SugPromPrice":false,"showDou12CornerIcon":false,"showDuo11Stage":0,"showJuIcon":false,"showMaskedDou11SugPrice":false,"success":true,"trueDuo11Prom":false},"doubleEleven2014":{"doubleElevenItem":false,"halfOffItem":false,"showAtmosphere":false,"showRightRecommendedArea":false,"step":0,"success":true},"extras":{},"gatewayDO":{"changeLocationGateway":{"queryDelivery":true,"queryProm":true},"redirect":{},"success":true,"trade":{"addToBuyNow":{},"addToCart":{}}},"internationalComponent":{"consumerProtections":[],"fromName":"意大利品牌 海外直供","nationalIcon":"//g.alicdn.com/mui/flag-img/circle@2x/IT.png","serviceLogo":"//img.alicdn.com/tps/TB1256qIFXXXXXDXpXXXXXXXXXX.png","shopCertificateIcon":"//img.alicdn.com/tps/TB1db7kKFXXXXcCXVXXXXXXXXXX-171-148.png","success":true,"suppliedByHkBrand":false,"suppliedByHkFair":true,"suppliedByHkOfficialSeller":false,"suppliedByHkOfficialWebsite":false,"suppliedByHkSupermarket":false,"suppliedByHkTaxFreeSeller":false,"tariff":{"name":"进口税","value":"商品已包税"}},"inventoryDO":{"hidden":false,"icTotalQuantity":310,"skuQuantity":{"4549633316960":{"quantity":68,"totalQuantity":68,"type":1},"4549633316961":{"quantity":37,"totalQuantity":37,"type":1},"4510639669311":{"quantity":0,"totalQuantity":0,"type":1},"4549633316962":{"quantity":35,"totalQuantity":35,"type":1},"4549633316963":{"quantity":158,"totalQuantity":158,"type":1},"4510639669310":{"quantity":12,"totalQuantity":12,"type":1}},"success":true,"totalQuantity":310,"type":1},"itemPicDO":{"success":true},"itemPriceResultDO":{"areaId":110100,"duo11Item":false,"duo11Stage":0,"extraPromShowRealPrice":false,"halfOffItem":false,"hasDPromotion":false,"hasMobileProm":false,"hasTmallappProm":false,"hiddenNonBuyPrice":false,"hideMeal":false,"priceInfo":{"4510639669311":{"areaSold":true,"onlyShowOnePrice":false,"price":"570.00","promotionList":[{"amountPromLimit":0,"amountRestriction":"","basePriceType":"IcPrice","canBuyCouponNum":0,"endTime":1614873599000,"extraPromTextType":0,"extraPromType":0,"limitProm":false,"postageFree":false,"price":"199.00","promType":"normal","start":false,"startTime":1614483157000,"status":2,"tfCartSupport":false,"tmallCartSupport":false,"type":"活动促销","unLogBrandMember":false,"unLogShopVip":false,"unLogTbvip":false}],"sortOrder":0},"4549633316963":{"areaSold":true,"onlyShowOnePrice":false,"price":"570.00","promotionList":[{"amountPromLimit":0,"amountRestriction":"","basePriceType":"IcPrice","canBuyCouponNum":0,"endTime":1614873599000,"extraPromTextType":0,"extraPromType":0,"limitProm":false,"postageFree":false,"price":"199.00","promType":"normal","start":false,"startTime":1614483157000,"status":2,"tfCartSupport":false,"tmallCartSupport":false,"type":"活动促销","unLogBrandMember":false,"unLogShopVip":false,"unLogTbvip":false}],"sortOrder":0},"4549633316962":{"areaSold":true,"onlyShowOnePrice":false,"price":"750.00","promotionList":[{"amountPromLimit":0,"amountRestriction":"","basePriceType":"IcPrice","canBuyCouponNum":0,"endTime":1614873599000,"extraPromTextType":0,"extraPromType":0,"limitProm":false,"postageFree":false,"price":"259.00","promType":"normal","start":false,"startTime":1614483157000,"status":2,"tfCartSupport":false,"tmallCartSupport":false,"type":"活动促销","unLogBrandMember":false,"unLogShopVip":false,"unLogTbvip":false}],"sortOrder":0},"4510639669310":{"areaSold":true,"onlyShowOnePrice":false,"price":"750.00","promotionList":[{"amountPromLimit":0,"amountRestriction":"","basePriceType":"IcPrice","canBuyCouponNum":0,"endTime":1614873599000,"extraPromTextType":0,"extraPromType":0,"limitProm":false,"postageFree":false,"price":"259.00","promType":"normal","start":false,"startTime":1614483157000,"status":2,"tfCartSupport":false,"tmallCartSupport":false,"type":"活动促销","unLogBrandMember":false,"unLogShopVip":false,"unLogTbvip":false}],"sortOrder":0},"4549633316961":{"areaSold":true,"onlyShowOnePrice":false,"price":"950.00","promotionList":[{"amountPromLimit":0,"amountRestriction":"","basePriceType":"IcPrice","canBuyCouponNum":0,"endTime":1614873599000,"extraPromTextType":0,"extraPromType":0,"limitProm":false,"postageFree":false,"price":"349.00","promType":"normal","start":false,"startTime":1614483157000,"status":2,"tfCartSupport":false,"tmallCartSupport":false,"type":"活动促销","unLogBrandMember":false,"unLogShopVip":false,"unLogTbvip":false}],"sortOrder":0},"4549633316960":{"areaSold":true,"onlyShowOnePrice":false,"price":"950.00","promotionList":[{"amountPromLimit":0,"amountRestriction":"","basePriceType":"IcPrice","canBuyCouponNum":0,"endTime":1614873599000,"extraPromTextType":0,"extraPromType":0,"limitProm":false,"postageFree":false,"price":"349.00","promType":"normal","start":false,"startTime":1614483157000,"status":2,"tfCartSupport":false,"tmallCartSupport":false,"type":"活动促销","unLogBrandMember":false,"unLogShopVip":false,"unLogTbvip":false}],"sortOrder":0}},"queryProm":false,"success":true,"successCall":true,"tmallShopProm":[]},"memberRightDO":{"activityType":0,"level":0,"postageFree":false,"shopMember":false,"success":true,"time":0,"value":0.0},"miscDO":{"bucketId":18,"cartAni":true,"city":"北京","cityId":110100,"hasCoupon":false,"region":"东城区","regionId":110101,"rn":"ad1e156aaf0c641cf461378ca6c46e10","smartBannerFlag":"top","success":true,"supportCartRecommend":false,"systemTime":"1614821204198","town":"东华门街道","townId":110101001},"progressiveInfoDO":{"double11Privilege":-1,"newPCInstallment":false,"period":[{"count":3,"coupon":"","couponPrice":0,"ratio":0.023},{"count":6,"coupon":"","couponPrice":0,"ratio":0.045},{"count":12,"coupon":"","couponPrice":0,"ratio":0.075}],"progressiveEnable":true,"rateMap":{"3":0.023,"6":0.045,"12":0.075},"showProgressivePlan":true,"skuTitle":"花呗分期(可选)","success":true,"tipType":0,"tryBeforeBuy":false},"regionalizedData":{"success":true},"relatedAuctionsDO":{"groupId":0,"relatedAuctions":[{"current":true,"itemId":631349765331,"itemNameList":["泰迪熊女士香水"],"params":{}},{"current":false,"itemId":631777778914,"itemNameList":["泰迪熊简装香水"],"params":{}}],"size":2,"success":true,"version":2},"sellCountDO":{"sellCount":"200+","success":true},"serviceInfoDO":{"divisionId":110100,"multipleSelectable":false,"mustSelectService":false,"serviceItemMap":{},"servicePriceMap":{},"serviceType":"other","success":true},"servicePromise":{"has3CPromise":false,"servicePromiseList":[{"description":"签收后60天内,若使用过程中发生皮肤过敏情况,商家承诺48小时内处理,信誉评级极好用户享受极速退。","displayText":"过敏包退","icon":"//img.alicdn.com/tps/TB1odFrLpXXXXctaXXXXXXXXXXX-64-64.png","link":"//rule.tmall.com/tdetail-4674.htm"},{"description":"签收后72小时(食品24小时)内,发现商品破损/漏液,商家承诺24小时内处理,信用评级极好用户享极速退。","displayText":"破损包退","icon":"//gw.alicdn.com/tfs/TB1gPJLQFXXXXc2XVXXXXXXXXXX-52-52.png","link":"//rule.tmall.hk/rule/rule_detail.htm?spm=0.0.0.0.fnOQUl&id=5548&tag=self"},{"description":"承诺正品保障,假一赔十","displayText":"正品保障","icon":"//img.alicdn.com/tps/TB1pSTEIFXXXXX7XpXXXXXXXXXX.png","link":"//rule.tmall.hk/gseller/rule/rule_detail.htm?id=1573&tag=self"},{"description":"卖家为您购买的商品投保退货运费险(保单生效以下单显示为准)","displayText":"赠运费险","icon":"//img.alicdn.com/tps/TB1xupxMXXXXXb3XFXXXXXXXXXX-80-80.png","link":"//service.taobao.com/support/knowledge-7602600.htm"}],"show":true,"success":true,"titleInformation":[]},"soldAreaDataDO":{"cityData":{"allAreaSold":false,"soldAreas":[140800,230400,371200,512000,370700,460300,511500,341000,140300,430600,520200,340500,430100,110100,451100,532500,370200,220700,511000,420900,510500,621100,441900,220200,361000,450600,360500,620600,411700,450100,330800,330300,211000,522300,441400,440900,411200,210500,321100,150600,410700,530500,620100,542300,350800,150100,440400,350300,320600,610900,410200,320100,371300,533100,341600,140900,431200,230500,341100,610400,430700,520300,640100,532600,140400,370800,511600,370300,511100,340600,430200,340100,220800,451200,361100,152200,450700,421000,220300,510600,330900,420500,510100,620700,442000,621200,441500,360600,450200,211100,530600,360100,620200,411300,330400,522400,445100,210600,150700,350900,611000,440500,321200,410800,210100,513200,320700,150200,410300,530100,632500,341700,640200,431300,222400,350400,542400,141000,320200,371400,610500,370900,511700,341200,140500,430800,230100,520400,340700,430300,451300,370400,421100,510700,340200,220400,442101,450800,360700,450300,331000,420600,232700,330500,420100,211200,530700,620300,441600,620800,360200,411400,210700,321300,632600,150800,410900,513300,445200,210200,150300,440600,350500,610600,440100,231200,320800,120100,640300,410400,320300,371500,542500,341800,632100,141100,341300,430900,140600,533300,371000,610100,622900,511800,370500,460100,511300,532300,340800,140100,152900,430400,532800,340300,451400,310100,450900,421200,510800,331100,420700,510300,630100,441700,360800,450400,211300,360300,411500,330600,620900,420200,522600,330100,445300,210800,530300,632700,150900,441200,530800,620400,440700,411000,210300,513400,320900,542600,632200,150400,410500,500100,610700,350600,440200,533400,350100,610200,623000,230800,320400,371600,422800,371100,640400,511900,542100,140700,431000,230300,430500,520100,140200,532900,370600,460200,511400,370100,421300,510900,340400,152500,220600,451000,360900,621000,450500,420800,220100,510400,330700,420300,433100,211400,522700,540100,441800,441300,360400,411600,210900,411100,530900,330200,620500,522200,210400,632300,150500,440800,530400,350700,632800,440300,321000,410600,320500,542200,371700,410100,610300,230900,341500,610800,431100,350200,640500]},"currentAreaEnable":true,"regionData":{"allAreaSold":false,"soldAreas":[110113,110112,110115,110114,110117,110116,110101,110229,110228,110103,110102,110230,110105,110104,110107,110106,110109,110111]},"success":true,"townData":{"allAreaSold":true,"soldAreas":[110101008,110101009,110101010,110101011,110101012,110101013,110101014,110101015,110101016,110101017,110101001,110101002,110101003,110101004,110101005,110101006,110101007]},"useNewRegionalSales":true},"tradeResult":{"cartEnable":true,"cartType":2,"miniTmallCartEnable":true,"startTime":1614245513000,"success":true,"tradeEnable":true,"tradeType":2},"userInfoDO":{"activeStatus":0,"companyPurchaseUser":false,"loginMember":false,"loginUserType":"buyer","success":true,"userId":0}},"isSuccess":true})']
json.loads(ss[0]) 后报错
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "D:\loading\python3.7\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "D:\loading\python3.7\lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 11901 (char 11900)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
盲猜这是个jsonp,你只把前面截取了。后面的括号你忘了