Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

JSON version of the stats


Jeff Thomas
 Share

Recommended Posts

Jeff Thomas
Posted
Posted

Is there a different endpoint or header i can p[Mod - Happy Thoughts] in to get the response in JSON v XML?

 

Thanks!

Jeff Thomas

VP-IT

https://joinava.org

Link to comment
Share on other sites

Nestor Perez
Posted
Posted

For which of all endpoints?

Me.

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
Yanick Coulombe 965064
Posted
Posted
What is the difference between

 

http://eu.data.vatsim.net/vatsim-data.json

 

and

 

http://eu.data.vatsim.net/vatsim-data.txt

?

 

Does these two contain exactly the same data? Because the json file is not published as far as I know

 

Yes I don't see any reason for the data to be different, only the format is different.

Yanick Coulombe (965064)
Webmaster - FIR de Montréal
[email protected]
fly.czulfir.com

logo-signature_edited.png

Link to comment
Share on other sites

Nestor Perez
Posted
Posted

Correct. JSON geta updated a bit more frequently than TXT too.

Me.

Link to comment
Share on other sites

  • 1 month later...
Felix Holmertz
Posted
Posted

Would it be possible to add the logon time for each client like it's presented in the regular .txt status file?

3500.png
Link to comment
Share on other sites

Alex Long
Posted
Posted
Would it be possible to add the logon time for each client like it's presented in the regular .txt status file?

 

This, with a few other things, are on the to-do list.

   
Link to comment
Share on other sites

  • 9 months later...
Daniel Roesen
Posted
Posted
On 12/11/2019 at 8:54 AM, Yanick Coulombe 965064 said:

Yes I don't see any reason for the data to be different, only the format is different.

 

On 12/11/2019 at 9:12 AM, Nestor Perez said:

Correct. JSON geta updated a bit more frequently than TXT too.

So is the difference in line breaks in controller info ("ATIS") text between TXT ("^§") and JSON ("^§") intentional?

The former seems to be a regression introduced some time ago and breaking at least one application (QuteScoope) which still parses the TXT for ^§ like used in JSON: https://github.com/qutescoop/qutescoop/issues/24

Link to comment
Share on other sites

Matt Bozwood-Davies
Posted
Posted

We're investigating this now @Daniel Roesen

  • Thanks 2
Link to comment
Share on other sites

Daniel Roesen
Posted
Posted

BTW; I seem to have found an earlier (April) report of this problem:

 

Link to comment
Share on other sites

  • 2 weeks later...
Luke Kolin
Posted
Posted

I'm getting a ton of JSON parsing errors on the data feed. Is anyone else?

Cheers!

... I spawn hundreds of children a day. They are daemons because they are easier to kill. The first four remain stubbornly alive despite my (and their) best efforts.

... Normal in my household makes you a member of a visible minority.

Link to comment
Share on other sites

Ross Carlson
Posted
Posted
12 minutes ago, Luke Kolin said:

I'm getting a ton of JSON parsing errors on the data feed. Is anyone else?

Cheers!

I'm not getting any issues in VAT-Spy. What errors are you getting?

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Martijn Rammeloo
Posted
Posted (edited)

So do I. Parsing the JSON has been working for ages (in PHP), but all of a sudden json_decode returns a string instead of an array.

 

Update 1530Z: It seems as if the data is encoded twice on the VATSIM side. Because, if I decode it twice, everything works fine again.

$total_results = json_decode($string, true); // $string is the curl return
$total_results = json_decode($total_results, true);  // <- This line was not needed until yesterday

@Nestor Perez

Martijn

 

Edited by Martijn Rammeloo
Update: sort of solved it...
Link to comment
Share on other sites

Daniel Roesen
Posted
Posted
On 11/24/2020 at 10:52 PM, Matt Bozwood-Davies said:

We're investigating this now @Daniel Roesen

Any update? It's still broken...

Link to comment
Share on other sites

 Share