} } Simple Objects with meta-data The metadata of the simple objects are emitted inside the JSON objects as separate JSON element with the key as “@” character followed by the individual meta-data and their values. XML : <system inactive="inactive"> <host-name>Hercules</host-name> </system> JSON : { "system" : { "@" : { "inactive" : true }, "host-name" : "Hercules" } } Containers Nodes Container Nodes are emitted as JSON Array. The meta-deta of the individual elements inside the container are represented inside the JSON element as a separate element with key as “@”. XML : <interfaces> <interface inactive="inactive"> <name>ge-0/0/0</name> <description>foo</description> </interface> <interface> <name>ge-0/0/1</name> <description>bar</description> </interface> </interfaces> JSON :
} } Simple Objects with meta-data The metadata of the simple objects are emitted inside the JSON objects as separate JSON element with the key as “@” character followed by the individual meta-data and their values. XML : <system inactive="inactive"> <host-name>Hercules</host-name> </system> JSON : { "system" : { "@" : { "inactive" : true }, "host-name" : "Hercules" } } Containers Nodes Container Nodes are emitted as JSON Array. The meta-deta of the individual elements inside the container are represented inside the JSON element as a separate element with key as “@”. XML : <interfaces> <interface inactive="inactive"> <name>ge-0/0/0</name> <description>foo</description> </interface> <interface> <name>ge-0/0/1</name> <description>bar</description> </interface> </interfaces> JSON :