Hi, need help on how to extract dat from this JSON.
i have used spath to extract a part of my JSON to get this data structure:
{<"app name1">: {
"reason": "all ok",
"upstreams": 1,
"dialouts": {
"idle": 40,
"total": 40,
"connecting": 0
},
},<"app name2": {
"reason": "all ok",
"upstreams": 2,
"dialouts": {
"idle": 15,
"total": 15,
"connecting": 0
},
},<"app name3": {
"reason": "all ok",
"upstreams": 2,
"dialouts": {
"idle": 15,
"total": 15,
"connecting": 0
},
},
.....
}
what i want to do is to have a table to for each i have the idle, total and connecting from "dialouts":
how can i do that?
↧