Hello there! How are you doing?
I would like to apologize beforehand about this newbie question, i know it might seem silly and kind of obvious, but i really do not know on how to do this.
I’m currently doing a query on a API that gets almost 40000 lines of data - 20 rows in total (So, there is a lot of columns and data…)
Here’s a example of one structure (Just the beginning):
{
"meta": {
"rc": "ok"
},
"data": [
{
"_id": "5c83d1779959a00f94014055",
"ip": "192.168.25.66",
"mac": "12:d9:34:be:56:e8",
"model": "BZ2",
"type": "uap",
"version": "4.3.28.11361",
"adopted": true,
"site_id": "1233b3456959678f94910b93",
"cfgversion": "xxxcd29xxx262xxx",
"config_network": {
"type": "dhcp",
"ip": "192.168.1.1"
},
"vwire_table": [],
"dot1x_portctrl_enabled": false,
"license_state": "registered",
"two_phase_adopt": false,
"unsupported": false,
"unsupported_reason": 0,
"inform_url": "http://unifi:8080/inform",
"inform_ip": "192.168.1.1",
"serial": "4EE9E7EE01EE",
"required_version": "2.4.4",
"board_rev": 18,
"antenna_table": [
{
"default": true,
"id": 4,
"name": "Combined",
"wifi0_gain": 3
}
],
"radio_table": [
{
"radio": "ng",
"name": "wifi0",
"ht": "20",
"channel": 6,
"tx_power_mode": "medium",
"antenna_gain": 6,
"min_rssi_enabled": false,
"sens_level_enabled": false,
"vwire_enabled": true,
"wlangroup_id": "zxcvb3169000a00f9401vcxz",
"min_txpower": 5,
"max_txpower": 23,
"builtin_antenna": true,
"builtin_ant_gain": 3,
"current_antenna_gain": 0,
"nss": 2,
"radio_caps": 16404
}
],
"scan_radio_table": [],
"ethernet_table": [
[... Etc]
So, what i want to do is:
Just display the following values, of the 20 objects with lots of data
→ “ip”
→ “mac”
Thats it.
Can someone give me some light, please?