|
10精币
假如总文本是:- {"Type":100,"Data":[{"PushMessageType":2,"SportId":1,"MatchId":4719651,"Market":3,"BetType":39,"OddsGroupId":1,"HomeOdds":"","AwayOdds":"","DrawOdds":"","LeagueId":1718},{"PushMessageType":1,"SportId":1,"MatchId":4719651,"Market":3,"BetType":4,"OddsGroupId":1,"Handicap":"2.5","HomeOdds":"-0.80","AwayOdds":"0.66","HomeOddsWagerSelectionId":354785752,"AwayOddsWagerSelectionId":354785753,"AvailableHandicaps":"2.5,2.75","MarketLineId":81876299,"LeagueId":1718},{"PushMessageType":1,"SportId":1,"MatchId":4719651,"Market":3,"BetType":4,"OddsGroupId":2,"Handicap":"2.75","HomeOdds":"-0.64","AwayOdds":"0.50","HomeOddsWagerSelectionId":354764812,"AwayOddsWagerSelectionId":354764813,"AvailableHandicaps":"2.5,2.75","MarketLineId":81876300,"LeagueId":1718}]}
复制代码 通过E2EE的从json载入,然后取文本(“//Data[1]”),取出的是
- {
- PushMessageType: 2
- BetType: 39
- HomeOdds:
- SportId: 1
- OddsGroupId: 1
- MatchId: 4719651
- Market: 3
- DrawOdds:
- AwayOdds:
- LeagueId: 1718
- }
复制代码 而不是
- {"PushMessageType":2,"SportId":1,"MatchId":4719651,"Market":3,"BetType":39,"OddsGroupId":1,"HomeOdds":"","AwayOdds":"","DrawOdds":"","LeagueId":1718}
复制代码 请问如何通过E2EE取出第二种样式的文本呢??
|
最佳答案
查看完整内容
.版本 2
.支持库 e2ee
.支持库 spec
存取键值表1.从JSON载入 (#常量1, , )
存取键值表1.取键值表 (“//Data[1]”, 存取键值表2)
调试输出 (存取键值表2.到JSON (假, ))
|