• Register

ACTIVE Network API Forums

API Forum

RSS Feed

ActiveGolf Tee Times API w/ JSON

    • marla.santos
    • Topic created 13 years ago

    I'm trying to parse through the tee times in the JSON format using jQuery but having issues due to the formatting. Would it be possible to wrap the rates of each individual teetime in an actual "Teetime" array to mimic the XML format (<Teetime> as the main item and <Rates> a child of that).

    Example:

    [{ Teetime: {"Rates":[{"MinPlayers":2,"MaxPlayers":4,"NineHoles":false,"GreenFee":29.0,"RegularGreenFee":48.0,"CartFee":19.0,"SellForWalking":null,"SellForRiding":48.0,"DueOnlineWalking":null,"DueOnlineRiding":4.35,"RatePlanId":2958,"RatePlanName":"ActiveGolf Rate","Classification":"Normal","AllowedPlayers":"2,3,4","RatePlanOwner":""}],"CourseId":891,"DateTime":"2012-04-11T07:30:00","Hole":1,"MaxPlayers":4,"BookedPlayers":0} }]

    Message edited by marla.santos 13 years ago

  1. jarredd13 years ago

    Hello Marla,

    I will look into this and get back to you shortly. Thanks for your patience while I determine possible solutions.

    Best regards,

    Jarred

    Technical Account Manager, Active Network

  2. jarredd13 years ago

    Hi Marla,

    After reviewing your question, I need some clarification. The formatting is following the standard JSON formatting, and it's generated by serialization so it's not something we can change. The Rates are child objects of each Teetime both in XML and JSON (same object structure internally, just a different serializer).

    I might be misunderstanding your request. Are you asking to change the format from the standard JSON formatting? If so, I don't believe that we can accommodate this as there are other developers using this in standard format.

    Best,

    Jarred

    Technical Account Manager, Active Network

  3. marla.santos13 years ago

    Yes, essentially I was asking if you could add a top level entity called "Teetime" to enclose each item result so that it would be easier to reference the child elements: rates, courseid, datetime, hole, maxplayers, bookedplayers. I guess that's not possible change. Bummer.

[ Page 1 of 1 ]