Java 如何在jQuery中处理JSON字符串?

Java 如何在jQuery中处理JSON字符串?,java,jquery,json,Java,Jquery,Json,我有一个JSON字符串,如下所示 [{"partner-code":"AMEX", "partner":"American Express", "issuer":"American Express", "summary":[], "description":[], "url":"http://www.qantas.com.au/fflyer/dyn/partners/card-american-express", "email":[], "phone-number":[], "media

我有一个JSON字符串,如下所示

    [{"partner-code":"AMEX",
"partner":"American Express",
"issuer":"American Express",
"summary":[],
"description":[],
"url":"http://www.qantas.com.au/fflyer/dyn/partners/card-american-express",
"email":[],
"phone-number":[],
"mediafile":[],
"bonus-offer-summary":"Earn up to 50,000 bonus Points with the Qantas American Express Ultimate Card. Up to 7,500 bonus Points also available on the Qantas American Express Premium and Discovery Cards. Conditions and spend criteria apply.",
"bonus-offer-description":"You could earn up to 50,000 bonus points with the Qantas American Express Ultimate Card when you apply by 31 December 2013, are approved and meet the eligible spend criterias<sup>***</sup>. Also, you could earn up to 30,000 bonus points with the Qantas American Express Premium Card<sup>^^</sup> or up to 7,500 bonus points with the Qantas American Express Discovery Card<sup>**</sup> when you apply, are approved by 31 December 2013 and meet the eligible spend criteria.",
"show-bonus-offer":"",
"card-offerings":[{"card-name":"Qantas American Express Discovery Card",
                    "earning-points":"This credit card automatically earns Qantas Frequent Flyer points",
                    "website":"http://www.americanexpress.com/au/content/frequent-flyer-cards/qantas-discovery-card/?filter=qanseries&bkgd=3&PID=35&BUID=CCG&AFFID=Qantas&CRTV=Earn&PSKU=AQDB&sourcecode=25A996J001&CPID=100036881",
                    "contact-phone-number":"1300 736 978",
                    "usage-type":"Personal",
                    "card-level":"Classic",
                    "card-type-01":"American Express",
                    "annual-fee":"0","opt-in-fee":"0",
                    "supplementary-card-fee":"0",
                    "supplementary-card-fee-descriptor":"annual Card fee per Supplementary Card<sup>~</sup>",
                    "interest-rate":"20.74",
                    "interest-free-period":"Up to 44 days interest free on purchases when the closing balance (including any balance transfer or promotional amount) is paid in full by the statement due date<sup>$</sup>",
                    "earned-area":"<ul>\r\n\t<li>1 point per $1 eligible spend<sup>*</sup></li>\r\n\t<li>1 extra point per $1 spent in Australia on selected Qantas products &amp; services<sup>+</sup></li>\r\n\t<li>Uncapped points earning<sup>^</sup></li>\r\n\t<li>This introductory offer is available to new<sup>**</sup> American Express Cardmembers only.</li>\r\n</ul>\r\n",
                    "other-features":"<ul>\r\n\t<li>Interest rate of 20.74% p.a.<sup>#</sup></li>\r\n\t<li>Annual card fee of $0</li>\r\n\t<li>$0 annual Card fee per Supplementary Card<sup>~</sup></li>\r\n\t<li>Up to 44 days interest free on purchases when the closing balance (including any balance transfer or promotional amount) is paid in full by the statement due date<sup>$</sup></li>\r\n\t<li>5,000 points after $300 spend<sup>**</sup> on purchases in first 3 months of becoming a Cardmember</li>\r\n\t<li>2,500 points after first Card spend<sup>**</sup> in Australia on selected Qantas products &amp; services in Australia<sup>+</sup></li>\r\n\t<li>Introductory offer available to new<sup>**</sup> American Express Cardmembers only</li>\r\n</ul>\r\n"},
                    {"card-name":"Qantas American Express Premium Card",
                    "earning-points":"This credit card automatically earns Qantas Frequent Flyer points",
                    "website":"http://www.americanexpress.com/au/content/frequent-flyer-cards/qantas-premium-card/?filter=qanseries&bkgd=3&PID=35&BUID=CCG&AFFID=Qantas&CRTV=Earn&PSKU=MB9&sourcecode=25A9974001&CPID=100036882",
                    "contact-phone-number":"1800 040 398",
                    "usage-type":"Personal",
                    "card-level":"Gold",
                    "card-type-01":"American Express",
                    "annual-fee":"249","opt-in-fee":"0",
                    "supplementary-card-fee":"0",
                    "interest-rate":"20.74",
                    "cash-advance-rate":"0",
                    "interest-free-period":"Up to 44 days interest free on purchases when the closing balance (including any balance transfer or promotional amount) is paid in full by the statement due date<sup>$</sup>","earned-area":"<ul class=\"noindent\">\r\n\t<li>You can earn 2 points per dollar spent<sup>*</sup>. Click 'View Website' above for further details.</li>\r\n\t<li>Uncapped points earning<sup>^</sup></li>\r\n</ul>\r\n","other-features":"<ul class=\"noindent\">\r\n\t<li>Interest rate of 20.74% p.a.<sup>#</sup></li>\r\n\t<li>Annual card fee of $249</li>\r\n\t<li>$0 annual Card fee per Supplementary Card<sup>~</sup></li>\r\n\t<li>Up to 44 days interest free on purchases when the closing balance (including any balance transfer or promotional amount) is paid in full by the statement due date<sup>$</sup></li>\r\n\t<li>5,000 points after first Card spend<sup>^^</sup> on eligible purchases</li>\r\n\t<li>2,500 points after first Card spend<sup>^^</sup> on selected Qantas products &amp; services in Australia<sup>+</sup></li>\r\n\t<li>22,500 points after $500 spend within the first three months<sup>^^</sup></li>\r\n\t<li>This introductory offer available to new<sup>^^</sup> American Express Cardmembers only.</li>\r\n\t<li>Complimentary Domestic and Overseas Travel Insurance<sup>##</sup> when you pay for travel with your Card</li>\r\n\t<li>2 Qantas Club invitations per year<sup>~~</sup> after your first Card spend on selected Qantas products &amp; services<sup>+</sup> in Australia</li>\r\n</ul>\r\n"},{"card-name":"Qantas American Express Ultimate Card","earning-points":"This credit card automatically earns Qantas Frequent Flyer points","website":"http://www.americanexpress.com/au/content/frequent-flyer-cards/qantas-ultimate/?filter=qanseries",
                    "contact-phone-number":"1300 736 978",
                    "usage-type":"Personal",
                    "card-level":"Platinum",
                    "card-type-01":"American Express",
                    "interest-free-period":"Up to 44 days interest free on purchases when the closing balance (including any balance transfer or promotional amount) is paid in full by the statement due date<sup>$</sup>",
                    "earned-area":"<ul class=\"noindent\">\r\n\t<li>You can earn:</li>\r\n\t<li>3 Qantas points<sup>*</sup> per dollar spent on eligible Card purchases at:\r\n\t<ul type=\"disc\">\r\n\t\t<li>Tens of thousands of restaurants in Australia<sup>$$</sup></li>\r\n\t\t<li>Selected Qantas products and services in Australia<sup>+</sup></li>\r\n\t</ul>\r\n\t</li>\r\n\t<li>2 points per dollar spent* on eligible Card purchases at:\r\n\t<ul type=\"disc\">\r\n\t\t<li>airlines, accommodation, major cruise and tour operators paid directly or through travel agencies<sup>$$</sup></li>\r\n\t\t<li>Spend in foreign currency when overseas and online<sup>$$</sup></li>\r\n\t</ul>\r\n\t</li>\r\n\t<li>1 point per dollar spent* on eligible Card purchases at:\r\n\t<ul type=\"disc\">\r\n\t\t<li>All other providers, excluding those below</li>\r\n\t\t<li>Insurances offered by American Express</li>\r\n\t</ul>\r\n\t</li>\r\n\t<li>0.5 point per dollar spent* on eligible Card purchases at:\r\n\t<ul type=\"disc\">\r\n\t\t<li>Utilities which are gas, water and electricity providers</li>\r\n\t\t<li>Insurance offered by companies other than American Express</li>\r\n\t\t<li>Telecommunication providers which includes goods and services purchased from phone, mobile and internet service providers</li>\r\n\t\t<li>Government bodies including the Australian Taxation Office, Australia Post, federal/state and local government bodies</li>\r\n\t</ul>\r\n\t</li>\r\n</ul>\r\n","other-features":"<ul class=\"noindent\">\r\n\t<li>Interest rate of 20.74% p.a.<sup>#</sup></li>\r\n\t<li>Annual card fee of $450</li>\r\n\t<li>$0 annual Card fee per Supplementary Card<sup>~</sup></li>\r\n\t<li>Up to 44 days interest free on purchases when the closing balance (including any balance transfer or promotional amount) is paid in full by the statement due date<sup>$</sup></li>\r\n\t<li>5,000 points after first Card spend<sup>***</sup> on eligible purchases</li>\r\n\t<li>2,500 points after first Card spend<sup>***</sup> on selected Qantas products &amp; services in Australia<sup>+</sup></li>\r\n\t<li>42,500 points after $500 spend within the first three months<sup>***</sup></li>\r\n\t<li>Introductory offer available to new<sup>***</sup> American Express Cardmembers only</li>\r\n\t<li>1 Complimentary domestic return flight<sup>+++</sup> between selected Australian Capital cities after your first Card spend every year in Australia on selected Qantas products and services<sup>+</sup></li>\r\n\t<li>Complimentary Domestic and Overseas Travel Insurance<sup>##</sup> when you pay for travel with your Card</li>\r\n</ul>\r\n"},
                    {"card-name":"Test Offering - Sarah",
                    "annual-fee":"0",
                    "opt-in-fee":"0",
                    "supplementary-card-fee":"0",
                    "interest-rate":"0",
                    "cash-advance-rate":"0"}
                ]
}]
[{“合作伙伴代码”:“美国运通”,
“合伙人”:“美国运通”,
“发行人”:“美国运通”,
“摘要”:[],
“说明”:[],
“url”:”http://www.qantas.com.au/fflyer/dyn/partners/card-american-express",
“电子邮件”:[],
“电话号码”:[],
“mediafile”:[],
“奖励优惠摘要”:“使用澳航美国运通终极卡赢取最多50000点奖励积分。澳航美国运通高级卡和探索卡上也可获得最多7500点奖励积分。条件和支出标准适用。”,
“奖金优惠说明”:"当您在2013年12月31日前申请、获得批准并符合合格消费标准***时,您可以使用澳航美国运通终极卡赢取最多50000点奖励积分。此外,您还可以使用澳航美国运通高级卡赢取最多30000点奖励积分^^^^^,或使用澳航美国运通探索卡赢取最多7500点奖励积分**当您申请时,将在2013年12月31日前获得批准,并符合合格的支出标准。”,
“展示奖金优惠”:“,
“卡产品”:[{“卡名”:“澳航美国运通发现卡”,
“赢取积分”:“此信用卡自动赢取澳航常客积分”,
“网站”:http://www.americanexpress.com/au/content/frequent-flyer-cards/qantas-discovery-card/?filter=qanseries&bkgd=3&PID=35&BUID=CCG&AFFID=Qantas&CRTV=Earn&PSKU=AQDB&sourcecode=25A996J001&CPID=100036881",
“联系电话号码”:“1300 736 978”,
“使用类型”:“个人”,
“卡片等级”:“经典”,
“card-type-01”:“美国运通”,
“年费”:“0”,“选择加入费”:“0”,
“附加卡费用”:“0”,
“附属卡费用描述符”:“每张附属卡的年费”,
“利率”:“20.74”,
“免息期”:“当期末余额(包括任何余额转移或促销金额)在对账单到期日全额支付时,购买可免息44天。”,
“挣得的区域”:“
    \r\n\t
  • 每1美元合格消费1分*
  • \r\n\t
  • 每1美元在澳大利亚购买选定的澳航产品和服务加分1分+
  • \r\n\t
  • 无上限积分挣得^
  • \r\n\t
  • 此介绍性优惠仅适用于新的**美国运通卡会员。
  • \r\n\r\n\t
  • 年利率20.74%。
  • \r\n\t
  • 年卡费0美元
  • \r\n\t
  • 每张补充卡的年卡费0美元
  • \r\n\t
  • 期末余额(包括任何余额转账或促销金额)时,购买可免息44天在成为持卡会员后的前3个月内,花费$300购买**后,在结单到期日之前全额支付$5000积分;
  • \r\n\t
  • 2500积分,首次在澳大利亚消费**后,在澳大利亚购买选定的澳航产品和服务+
  • \r\n\t
  • 向新的**美国运通持卡会员提供介绍性优惠只有
  • \r\n
\r\n“}, {“卡名”:“澳洲航空美国运通高级卡”, “赢取积分”:“此信用卡自动赢取澳航常客积分”, “网站”:http://www.americanexpress.com/au/content/frequent-flyer-cards/qantas-premium-card/?filter=qanseries&bkgd=3&PID=35&BUID=CCG&AFFID=Qantas&CRTV=Earn&PSKU=MB9&sourcecode=25A9974001&CPID=100036882", “联系电话”:“1800 040 398”, “使用类型”:“个人”, “卡级”:“金级”, “card-type-01”:“美国运通”, “年费”:“249”,“选择加入费”:“0”, “附加卡费用”:“0”, “利率”:“20.74”, “现金垫款率”:“0”, “免息期”:“当期末余额(包括任何余额转移或促销金额)在报表到期日美元前全额支付时,购买可免息44天”,“已赚区域”:“
    \r\n\t
  • 每花一美元你可以获得2分*。单击上面的“查看网站”了解更多详细信息。
  • \r\n\t
  • 无上限积分收入^
  • \r\n
\r\n,“其他功能”:“
    \r\n\t
  • 年利率20.74%#
  • \r\n\t
  • 年卡费$249
  • \r\n\t
  • 每张补充卡的年卡费$0
  • \r\n\t
  • 期末余额(包括任何余额转账或促销金额)时,购买可免息44天在对账单到期日前全额支付符合条件的购买第一张卡消费后5000分(
  • \r\n\t
  • 2500分(
  • \r\n\t
  • 2500分(^^^^^^)澳大利亚选定的澳航产品和服务+
  • \r\n\t
  • 22500分(^前三个月内消费500美元)^
  • \r\n\t
  • 此介绍性优惠可用仅限新的^^^^美国运通卡会员。
  • \r\n\t
  • 免费国内和海外旅行保险##当您使用卡支付旅行费用时
  • \r\n\t
  • 每年2次澳航俱乐部邀请~~在您的第一张卡在澳大利亚购买选定的澳航产品和服务后
  • \r\n
\r\n},{“卡名”:澳洲航空美国运通终极卡,“赢取积分”:“此信用卡自动赢取澳洲航空常客积分”,“网站”:http://www.americanexpress.com/au/content/frequent-flyer-cards/qantas-ultimate/?filter=qanseries", “联系电话号码”:“1300 736 978”, “使用类型”:“个人”, “卡级别”:“白金”, “card-type-01”:“美国运通”, “免息期”:“当期末余额(包括任何余额转移或促销金额)在对账单到期日全额支付时,购买可免息44天。”,
//yourString is the String provided in the question
var jsonObject = JSON.parse(yourString); 
alert(jsonObject.partner);