json vs string

JavaScript performance comparison

Test case created by 12d

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
ajax return string
var data='{"id":"397218","name":"In Residence Bangkok Sukhumvit(素坤逸住宅酒店)","internationalhotel":"T","show_price":"T","gift":"F","prom":"","starlience":"F","starcss":"hotel_diamond05","startips":"5钻","traffic":"F","Booking_huashu":"未满6岁的儿童如果与大人共同使用已有的床位可免住宿费","originalprice":{"currency":"USD","amount":"82"},"lowprice":{"currency":"RMB","amount":"516"},"roomlist":{"0":{"id":"40218740","name":"一卧室行政房","checkAvlID":40218740,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"Executive Class Guests will receive the following additional benefits when booking a Studio R or o"},"subroomlist":{"0":{"id":"1","name":" !Super low rate – rate includes 50% discount!","name":" !Super low rate – rate includes 50% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1184,"oriPrice_tsr":188,"price_dsingle":1006,"oriPrice_dsingle":1006,"price_muldtotal":1006,"oriPrice_dtotal":160,"singlediscount":178,"muldiscount":178,"price_sr":1006,"oriPrice_sr":160,"price_xf":1006,"oriPrice_xf":160,"oriCurrency":"USD","price_list":"1006,160,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":2367,"oriPrice_tsr":376,"price_dsingle":2011,"oriPrice_dsingle":2011,"price_muldtotal":2011,"oriPrice_dtotal":320,"singlediscount":356,"muldiscount":356,"price_sr":2011,"oriPrice_sr":320,"price_xf":2011,"oriPrice_xf":320,"oriCurrency":"USD","price_list":"2011,320,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"1":{"id":"40218741","name":"行政工作室房","checkAvlID":40218741,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"Executive Class Guests will receive the following additional benefits when booking a Studio R or o"},"subroomlist":{"0":{"id":"1","name":" !Super low rate – rate includes 50% discount!","name":" !Super low rate – rate includes 50% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1015,"oriPrice_tsr":161,"price_dsingle":863,"oriPrice_dsingle":863,"price_muldtotal":863,"oriPrice_dtotal":137,"singlediscount":153,"muldiscount":153,"price_sr":863,"oriPrice_sr":137,"price_xf":863,"oriPrice_xf":137,"oriCurrency":"USD","price_list":"863,137,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":2031,"oriPrice_tsr":323,"price_dsingle":1725,"oriPrice_dsingle":1725,"price_muldtotal":1725,"oriPrice_dtotal":274,"singlediscount":305,"muldiscount":305,"price_sr":1725,"oriPrice_sr":274,"price_xf":1725,"oriPrice_xf":274,"oriCurrency":"USD","price_list":"1725,274,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"2":{"id":"40218742","name":"一卧室","checkAvlID":40218742,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"The One Bedroom Suites are even more spacious and feel like a home from home. The dining area seats "},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":906,"oriPrice_tsr":144,"price_dsingle":770,"oriPrice_dsingle":770,"price_muldtotal":770,"oriPrice_dtotal":122,"singlediscount":136,"muldiscount":136,"price_sr":770,"oriPrice_sr":122,"price_xf":770,"oriPrice_xf":122,"oriCurrency":"USD","price_list":"770,122,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1928,"oriPrice_tsr":307,"price_dsingle":1638,"oriPrice_dsingle":1638,"price_muldtotal":1638,"oriPrice_dtotal":260,"singlediscount":290,"muldiscount":290,"price_sr":1638,"oriPrice_sr":260,"price_xf":1638,"oriPrice_xf":260,"oriCurrency":"USD","price_list":"1638,260,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"3":{"id":"40218743","name":"工作室房","checkAvlID":40218743,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"Studio Rs are perfect for 2 leisure or business travellers. Restful sleep will come easily with our "},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":607,"oriPrice_tsr":97,"price_dsingle":516,"oriPrice_dsingle":516,"price_muldtotal":516,"oriPrice_dtotal":82,"singlediscount":91,"muldiscount":91,"price_sr":516,"oriPrice_sr":82,"price_xf":516,"oriPrice_xf":82,"oriCurrency":"USD","price_list":"516,82,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1292,"oriPrice_tsr":205,"price_dsingle":1098,"oriPrice_dsingle":1098,"price_muldtotal":1098,"oriPrice_dtotal":175,"singlediscount":194,"muldiscount":194,"price_sr":1098,"oriPrice_sr":175,"price_xf":1098,"oriPrice_xf":175,"oriCurrency":"USD","price_list":"1098,175,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"4":{"id":"40218744","name":"一卧室套房含早餐","checkAvlID":40218744,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"The One Bedroom Suites are even more spacious and feel like a home from home. The dining area seats "},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1041,"oriPrice_tsr":166,"price_dsingle":885,"oriPrice_dsingle":885,"price_muldtotal":885,"oriPrice_dtotal":141,"singlediscount":157,"muldiscount":157,"price_sr":885,"oriPrice_sr":141,"price_xf":885,"oriPrice_xf":141,"oriCurrency":"USD","price_list":"885,141,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":2215,"oriPrice_tsr":352,"price_dsingle":1882,"oriPrice_dsingle":1882,"price_muldtotal":1882,"oriPrice_dtotal":299,"singlediscount":333,"muldiscount":333,"price_sr":1882,"oriPrice_sr":299,"price_xf":1882,"oriPrice_xf":299,"oriCurrency":"USD","price_list":"1882,299,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"5":{"id":"40218745","name":"工作室房(含早餐)","checkAvlID":40218745,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"Studio Rs are perfect for 2 leisure or business travellers. Restful sleep will come easily with our"},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":742,"oriPrice_tsr":118,"price_dsingle":631,"oriPrice_dsingle":631,"price_muldtotal":631,"oriPrice_dtotal":100,"singlediscount":112,"muldiscount":112,"price_sr":631,"oriPrice_sr":100,"price_xf":631,"oriPrice_xf":100,"oriCurrency":"USD","price_list":"631,100,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1579,"oriPrice_tsr":251,"price_dsingle":1342,"oriPrice_dsingle":1342,"price_muldtotal":1342,"oriPrice_dtotal":213,"singlediscount":237,"muldiscount":237,"price_sr":1342,"oriPrice_sr":213,"price_xf":1342,"oriPrice_xf":213,"oriCurrency":"USD","price_list":"1342,213,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}}}}';
var json = new Function('return '+data)();
var id = json.id;
pending…
ajax return json
var data={"id":"397218","name":"In Residence Bangkok Sukhumvit(素坤逸住宅酒店)","internationalhotel":"T","show_price":"T","gift":"F","prom":"","starlience":"F","starcss":"hotel_diamond05","startips":"5钻","traffic":"F","Booking_huashu":"未满6岁的儿童如果与大人共同使用已有的床位可免住宿费","originalprice":{"currency":"USD","amount":"82"},"lowprice":{"currency":"RMB","amount":"516"},"roomlist":{"0":{"id":"40218740","name":"一卧室行政房","checkAvlID":40218740,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"\"Executive Class\" Guests will receive the following additional benefits when booking a Studio R or o"},"subroomlist":{"0":{"id":"1","name":" !Super low rate – rate includes 50% discount!","name":" !Super low rate – rate includes 50% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1184,"oriPrice_tsr":188,"price_dsingle":1006,"oriPrice_dsingle":1006,"price_muldtotal":1006,"oriPrice_dtotal":160,"singlediscount":178,"muldiscount":178,"price_sr":1006,"oriPrice_sr":160,"price_xf":1006,"oriPrice_xf":160,"oriCurrency":"USD","price_list":"1006,160,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":2367,"oriPrice_tsr":376,"price_dsingle":2011,"oriPrice_dsingle":2011,"price_muldtotal":2011,"oriPrice_dtotal":320,"singlediscount":356,"muldiscount":356,"price_sr":2011,"oriPrice_sr":320,"price_xf":2011,"oriPrice_xf":320,"oriCurrency":"USD","price_list":"2011,320,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"1":{"id":"40218741","name":"行政工作室房","checkAvlID":40218741,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"\"Executive Class\" Guests will receive the following additional benefits when booking a Studio R or o"},"subroomlist":{"0":{"id":"1","name":" !Super low rate – rate includes 50% discount!","name":" !Super low rate – rate includes 50% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1015,"oriPrice_tsr":161,"price_dsingle":863,"oriPrice_dsingle":863,"price_muldtotal":863,"oriPrice_dtotal":137,"singlediscount":153,"muldiscount":153,"price_sr":863,"oriPrice_sr":137,"price_xf":863,"oriPrice_xf":137,"oriCurrency":"USD","price_list":"863,137,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":2031,"oriPrice_tsr":323,"price_dsingle":1725,"oriPrice_dsingle":1725,"price_muldtotal":1725,"oriPrice_dtotal":274,"singlediscount":305,"muldiscount":305,"price_sr":1725,"oriPrice_sr":274,"price_xf":1725,"oriPrice_xf":274,"oriCurrency":"USD","price_list":"1725,274,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"2":{"id":"40218742","name":"一卧室","checkAvlID":40218742,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"The One Bedroom Suites are even more spacious and feel like a home from home. The dining area seats "},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":906,"oriPrice_tsr":144,"price_dsingle":770,"oriPrice_dsingle":770,"price_muldtotal":770,"oriPrice_dtotal":122,"singlediscount":136,"muldiscount":136,"price_sr":770,"oriPrice_sr":122,"price_xf":770,"oriPrice_xf":122,"oriCurrency":"USD","price_list":"770,122,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1928,"oriPrice_tsr":307,"price_dsingle":1638,"oriPrice_dsingle":1638,"price_muldtotal":1638,"oriPrice_dtotal":260,"singlediscount":290,"muldiscount":290,"price_sr":1638,"oriPrice_sr":260,"price_xf":1638,"oriPrice_xf":260,"oriCurrency":"USD","price_list":"1638,260,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"3":{"id":"40218743","name":"工作室房","checkAvlID":40218743,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"Studio Rs are perfect for 2 leisure or business travellers. Restful sleep will come easily with our "},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":607,"oriPrice_tsr":97,"price_dsingle":516,"oriPrice_dsingle":516,"price_muldtotal":516,"oriPrice_dtotal":82,"singlediscount":91,"muldiscount":91,"price_sr":516,"oriPrice_sr":82,"price_xf":516,"oriPrice_xf":82,"oriCurrency":"USD","price_list":"516,82,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1292,"oriPrice_tsr":205,"price_dsingle":1098,"oriPrice_dsingle":1098,"price_muldtotal":1098,"oriPrice_dtotal":175,"singlediscount":194,"muldiscount":194,"price_sr":1098,"oriPrice_sr":175,"price_xf":1098,"oriPrice_xf":175,"oriCurrency":"USD","price_list":"1098,175,0$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价不包含早餐。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"4":{"id":"40218744","name":"一卧室套房含早餐","checkAvlID":40218744,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"The One Bedroom Suites are even more spacious and feel like a home from home. The dining area seats "},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1041,"oriPrice_tsr":166,"price_dsingle":885,"oriPrice_dsingle":885,"price_muldtotal":885,"oriPrice_dtotal":141,"singlediscount":157,"muldiscount":157,"price_sr":885,"oriPrice_sr":141,"price_xf":885,"oriPrice_xf":141,"oriCurrency":"USD","price_list":"885,141,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":2215,"oriPrice_tsr":352,"price_dsingle":1882,"oriPrice_dsingle":1882,"price_muldtotal":1882,"oriPrice_dtotal":299,"singlediscount":333,"muldiscount":333,"price_sr":1882,"oriPrice_sr":299,"price_xf":1882,"oriPrice_xf":299,"oriCurrency":"USD","price_list":"1882,299,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}},"5":{"id":"40218745","name":"工作室房(含早餐)","checkAvlID":40218745,"payment":"FG","room_pic":"F","subroomcount":"2","firstpicurl":"","roomInfoDetails":{"details":{"0":"可入住人数:2人"},"description":"Studio Rs are perfect for 2 leisure or business travellers. Restful sleep will come easily with our"},"subroomlist":{"0":{"id":"1","name":" !Special last minute rate – rate includes 53% discount!","name":" !Special last minute rate – rate includes 53% discount!(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":742,"oriPrice_tsr":118,"price_dsingle":631,"oriPrice_dsingle":631,"price_muldtotal":631,"oriPrice_dtotal":100,"singlediscount":112,"muldiscount":112,"price_sr":631,"oriPrice_sr":100,"price_xf":631,"oriPrice_xf":100,"oriCurrency":"USD","price_list":"631,100,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"不可取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"该订单一经确认后不可被取消或修改。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}},"1":{"id":"2","name":" 标准价","name":" 标准价(最多2人)","payment":"PP","recommend":7,"gtaCurrency":"USD","MaxPerson":"2","price":{"price_ms":0,"price_tsr":1579,"oriPrice_tsr":251,"price_dsingle":1342,"oriPrice_dsingle":1342,"price_muldtotal":1342,"oriPrice_dtotal":213,"singlediscount":237,"muldiscount":237,"price_sr":1342,"oriPrice_sr":213,"price_xf":1342,"oriPrice_xf":213,"oriCurrency":"USD","price_list":"1342,213,2$"},"show_price":"T","show_ppprice":"T","currency":{"en":"RMB","cn":"人民币","er":"1.00000"},"policytitle":"限时取消","policyInfo":{"bed":"大床。","breakfast":"房价已包含双早。","net":"全部房间支持免费无线和有线宽带上网。","info":"如需取消或修改订单,请在2013-01-02 01:00以前通知携程。若未按时入住酒店,我们将扣除您全额或部分房费。"},"breakfast":"免费双早","bed":"大床","net":"免费宽带","prom":"","minstate":"1","guarantee":{"need":"F","info":""}}}}}};
//var json = JSON.parse(a);
var id = data.id;
 
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment