The json… returning a list of 2+ objects.
When the API returns only one object, the brackets are gone.
{
“nagios_xi_hosts.json.host”: [
{
“@attributes”: {
“id”: “26128”
},
“action_url”: {},
“active_checks_enabled”: “1”,
“address”: “1.1.1.1”,
“alias”: “sldops0725”,
“check_interval”: “5”,
“config_type”: “1”,
“display_name”: “sldops0725”,
“first_notification_delay”: “0”,
“host_name”: “sldops0725”,
“icon_image”: “redhat.png”,
“icon_image_alt”: {},
“instance_id”: “1”,
“is_active”: “1”,
“max_check_attempts”: “5”,
“notes”: {},
“notes_url”: {},
“notification_interval”: “60”,
“notifications_enabled”: “1”,
“passive_checks_enabled”: “1”,
“retry_interval”: “1”,
“statusmap_image”: “redhat.png”
},
{
“@attributes”: {
“id”: “14039”
},
“action_url”: {},
“active_checks_enabled”: “1”,
“address”: “2.2.2.2”,
“alias”: “sldops0196”,
“check_interval”: “5”,
“config_type”: “1”,
“display_name”: “sldops0196”,
“first_notification_delay”: “0”,
“host_name”: “sldops0196”,
“icon_image”: “redhat.png”,
“icon_image_alt”: {},
“instance_id”: “1”,
“is_active”: “1”,
“max_check_attempts”: “5”,
“notes”: {},
“notes_url”: {},
“notification_interval”: “60”,
“notifications_enabled”: “1”,
“passive_checks_enabled”: “1”,
“retry_interval”: “1”,
“statusmap_image”: “redhat.png”
}
]
}