• Resolved vatcar

    (@vatcar)


    Hi,

    We are building a website which shows a departure / arrival board bringing data from a .json feed.

    https://miguelarmas.ca/vatsim/mufh-flights.json

    The file is split into the first sector basednode=cid but then there is an alternative source of information which is in this URL which is under “flight_plan”.

    Code below displays the correct info –

    [jsoncontentimporter url=https://miguelarmas.ca/vatsim/mufh-flights.json basenode=cid]<p style=”text-align:center; color:black”>{callsign}</p> [/jsoncontentimporter]

    However, we trying to display the further information with this code –

    [jsoncontentimporter url=https://miguelarmas.ca/vatsim/mufh-flights.json basenode=”cid”]{subloop-array=flight_plan}<p style=”text-align:center; color:black”>{aircraft_short}</p>{/subloop-array:flight_plan} [/jsoncontentimporter]

    We aren’t getting any data too display. I’m pretty sure it’s something I’ve done but any assistance would be helpful.

    Thanks,

    James

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author berkux

    (@berkux)

    Hi James,

    try this:

    [jsoncontentimporter url=https://miguelarmas.ca/vatsim/mufh-flights.json]
    name: {name} -{subloop:flight_plan:-1}aircraft_short: {flight_plan.aircraft_short}{/subloop:flight_plan} <hr>
    [/jsoncontentimporter]

    Bernhard

Viewing 1 replies (of 1 total)
  • The topic ‘JSON issue’ is closed to new replies.