how to read json result in jquery?

前端 未结 4 1218
忘掉有多难
忘掉有多难 2020-11-27 22:43

I\'m not familiar with jquery. Will you please help me in this? I have a json respone from url but i don\'t know how, can i read key value in jquery.

For ex

4条回答
  •  粉色の甜心
    2020-11-27 23:09

    var json = $.parseJson(jsonString);
    

    To get the value 282829899 for "HAWBID", you would use:

    var hawbid = json.waybill_log.TrackingResult.HAWBEntity.HAWBID;
    

提交回复
热议问题