Thank you - That made it work. Now I'm on to the next step. I need to extract more data from this device. I issued another command that outputs the full details. This changes the json file and the schema. I created the schema again for the parse JSON by inputting a sample of data from the json file. This is the schema i get now. I hope this stuff is easy for you. Again, I appreciate any help with this.
{
"type": "object", Note--If I keep this as array the Parse json does not like it. If I change it to Object the Create Item fails
"items": {
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"domain": {
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
},
"domain-type": {
"type": "string"
}
}
},
"ipv4-address": {
"type": "string"
},
"interfaces": {
"type": "array"
},
"nat-settings": {
"type": "object",
"properties": {
"auto-rule": {
"type": "boolean"
},
"ipv4-address": {
"type": "string"
},
"ipv6-address": {
"type": "string"
},
"hide-behind": {
"type": "string"
},
"install-on": {
"type": "string"
},
"method": {
"type": "string"
}
}
},
"comments": {
"type": "string"
},
"color": {
"type": "string"
},
"icon": {
"type": "string"
},
"tags": {
"type": "array"
},
"meta-info": {
"type": "object",
"properties": {
"lock": {
"type": "string"
},
"validation-state": {
"type": "string"
},
"last-modify-time": {
"type": "object",
"properties": {
"posix": {
"type": "integer"
},
"iso-8601": {
"type": "string"
}
}
},
"last-modifier": {
"type": "string"
},
"creation-time": {
"type": "object",
"properties": {
"posix": {
"type": "integer"
},
"iso-8601": {
"type": "string"
}
}
},
"creator": {
"type": "string"
}
}
},
"read-only": {
"type": "boolean"
},
"available-actions": {
"type": "object",
"properties": {
"edit": {
"type": "string"
},
"delete": {
"type": "string"
},
"clone": {
"type": "string"
}
}
}
},
"required": [
"uid",
"name",
"type",
"domain",
"ipv4-address",
"interfaces",
"nat-settings",
"comments",
"color",
"icon",
"tags",
"meta-info",
"read-only",
"available-actions"
]
}
}