May 2019
Beginner to intermediate
650 pages
14h 50m
English
The data file for this example (Data/sol_2016.json) is a JSON object that contains entries for several bodies that orbit the sun. It has the following structure:
{ "star":{...}, "planets":[...], // we only need the data from this array! "asteroids":[...], "tnos":[...], "centaurs":[...], "comets":[...]}
We are only interested in the objects inside the planets array that have an id property with one of the following values: p3, p4, p5, p6, p7, p8. This excludes dwarf planets and planets that don't have any moons. We will only use a few properties from each object. They are listed as follows:
"planets": [ {"id", "name", "diameterKm", "satellites": [ {"name", "diameterKm"} ]]
With this information, you can load the file and filter ...
Read now
Unlock full access