hestiaAI / Argonodes

JSON and its Argonodes!
https://hestiaai.github.io/Argonodes/
Other
3 stars 1 forks source link

When a path is sometimes present sometimes absent, it is not showed in the tree #4

Closed wilderino closed 2 years ago

wilderino commented 2 years ago

When I create a tree from this file, it doesn't contain the path to activity {"locations": [{ "latitudeE7": 462181912, "longitudeE7": 65012084, "accuracy": 20, "source": "WIFI", "deviceTag": -1705558503, "deviceDesignation": "PRIMARY", "timestamp": "2018-03-16T18:04:41.915Z" }, { "latitudeE7": 462181986, "longitudeE7": 65012019, "accuracy": 20, "activity": [{ "activity": [{ "type": "UNKNOWN", "confidence": 43 }, { "type": "IN_VEHICLE", "confidence": 31 }, { "type": "WALKING", "confidence": 2 }], "timestamp": "2018-03-16T18:05:32.091Z" }], "source": "WIFI", "deviceTag": -1705558503, "deviceDesignation": "PRIMARY", "timestamp": "2018-03-16T18:06:20.462Z" }]}

wilderino commented 2 years ago

Result: $ $.locations $.locations[] $.locations[].latitudeE7 $.locations[].longitudeE7 $.locations[].accuracy $.locations[].source $.locations[].deviceTag $.locations[].deviceDesignation $.locations[].timestamp

Expected: $ $.locations $.locations[] $.locations[].latitudeE7 $.locations[].longitudeE7 $.locations[].accuracy $.locations[].activity $.locations[].activity[] $.locations[].activity[].activity $.locations[].activity[].activity[] $.locations[].activity[].activity[].type $.locations[].activity[].activity[].confidence $.locations[].activity[].timestamp $.locations[].source $.locations[].deviceTag $.locations[].deviceDesignation $.locations[].timestamp

Amustache commented 2 years ago

Fix'd with #3