Im getting a very long JSON Object as response to my API call.
Whats the best approach on extracting individual data points from it?
I need it for a solar dashboard.
This is my current approach, but is this really good practice for like 50 data points? That would be quite a lot of code.
First ~5% of the JSON Object:
enter image description here
double pacValue = jsonObject
.getJSONObject("Monitor Details")
.getJSONObject("kpi")
.getDouble("pac");
2