【发布时间】:2012-06-13 16:26:33
【问题描述】:
可能重复:
Accessing Json fields with weird characters
Parsing JSON w/ @ symbol in it
大家好,这是我第一次来这里,对不起我的英语 所以我从 json 结果中提取字符串时遇到问题,字符串看起来像这样@string。这是结果格式的示例
"RateInfo": {
"@priceBreakdown": "true",
"@promo": "false",
"@rateChange": "false",
"ChargeableRateInfo": {
"@averageBaseRate": "93.33",
"@averageRate": "93.33",
"@commissionableUsdTotal": "93.33",
"@currencyCode": "USD",
"@maxNightlyRate": "93.33",
"@nightlyRateTotal": "93.33",
"@surchargeTotal": "16.33",
"@total": "109.66",
"NightlyRatesPerRoom": {
我需要拿出一个@total。请帮忙
【问题讨论】:
-
你为什么要发送看起来是 json 格式的 XML 数据?