如何从Sabre API解析JSON响应

时间:2018-04-02 09:47:48

标签: javascript jquery json

大家好知道如何使用JQuery解析这种类型的JSON响应。此响应来自Sabre API。

object(SharedContext) #3 (1) {
  ["results":"SharedContext":private]= >
  array(7) {
    ["SECURITY"] =>
    NULL
      ["origin"] =>
      string(3)
    "LAX" ["destination"] =>
    string(3)
    "JFK" ["departureDate"] =>
    string(10)
    "2018-08-30" ["LeadPriceCalendar"] =>
    object(stdClass) #6 (4) {
      ["OriginLocation"]= >
      string(3)
    "LAX" ["DestinationLocation"] =>
    string(3)
    "JFK" ["FareInfo"] =>
    array(1) {
        [0] =>
        object(stdClass) #8 (6) {
          ["LowestFare"]= >
          object(stdClass) #9 (2) {
            ["AirlineCodes"]= >
          array(1) {
            [0] =>
            string(2)
            "AS"
          }
          ["Fare"] =>
          float(296.4)
      }
   

此处有完整的JSON响应:json response link

非常感谢任何帮助

0 个答案:

没有答案