01-31-2021 06:53 AM
I got the following API code from https://www.n2yo.com/api/.
-----------------------------------
{"info":{"satname":"SPACE STATION","satid":25544,"transactionscount":34},"positions":[{"satlatitude":17.80822298,"satlongitude":141.8774566,"sataltitude":421.54,"azimuth":100.43,"elevation":0.22,"ra":168.68966611,"dec":-9.29635148,"timestamp":1612097078,"eclipsed":true}]}
-----------------------------------
I want to take out all the node data in the json separately.(look an the picture)
How to do?
I am no longer good at JSON, can someone help me?
thank.
Solved! Go to Solution.
01-31-2021 11:04 AM - edited 01-31-2021 11:06 AM
Luckily, it is just a matter of setting up the cluster correctly. Here are two options. The first is using the built-in Unflatten From JSON function. The second is using the JSON Text library from JDP Science that is available through VI Package Manager. Personally, I prefer the JSON Text library.
EDIT: I just noticed the measurements should be a floating point instead of integers. Again, it is just a matter of defining the clusters correctly.
01-31-2021 06:50 PM
Thank you so much~ let me learn this method. Thank you for your help and wish you a good day~