2021年3月17日星期三

Parsing JSON from API URL in Unity via C#

I am trying to parse some data that is in a JSON Array so that I can use it in my project. The values are used in plotting functions for visualizing orbits, I have completed literally everything for the project besides this task. To do the parse the JSON I am attempting to use LitJSon but am having no luck. If anyone can provide some insight as to how I should do this it would be greatly appreciated.

Here is the JSON format that I have:

[      {          "SatNum": "47757",          "Epoch": "21076.58335648",          "MMotDeriv": "-.01183622",          "inclination": "53.0445",          "RAAN": "118.1488",          "Eccentricity": "0001096",          "ArgPerigee": "64.2393",          "MAnomaly": "229.2271",          "MMotion": "15.76357572"      }, {          "SatNum": "47758",          "Epoch": "21076.83334491",          "MMotDeriv": "-.01182939",          "inclination": "53.0463",          "RAAN": "116.9104",          "Eccentricity": "0001165",          "ArgPerigee": "60.1537",          "MAnomaly": "211.8085",          "MMotion": "15.75727878"      }  ]  
https://stackoverflow.com/questions/66683347/parsing-json-from-api-url-in-unity-via-c-sharp March 18, 2021 at 08:55AM

没有评论:

发表评论