show | display json
Syntax
show | display json <groups | interface-ranges | no-export-path>
Description
Show output in JavaScript Object Notation (JSON) format. Devices running Junos OS support JSON representation of the operational command output and the Junos OS configuration hierarchy. On the Junos OS CLI, to display the command output or configuration in JSON instead of in the default formatted ASCII text, append the | display json option to the command.
Options
groups |
Tag inherited data with the source group name. |
interface-ranges | Tag inherited data with the source interface-range name |
no-export-path | Do not export parent path in the data. |
Required Privilege Level
view
Sample Output
show chassis hardware | display json
user@host# show chassis hardware | display json { "chassis-inventory" : [ { "attributes" : { "xmlns" : "http://xml.juniper.net/junos/16.1R1/junos-chassis" }, "chassis" : [ { "attributes" : {"junos:style" : "inventory"}, "name" : [ { "data" : "Chassis" } ], "serial-number" : [ { "data" : "serial-number" } ], "description" : [ { "data" : "MX80-48T" } ], "chassis-module" : [ { "name" : [ { "data" : "Midplane" } ], "version" : [ { "data" : "REV 11" } ], "part-number" : [ { "data" : "711-031603" } ], "serial-number" : [ { "data" : "serial-number" } ], "description" : [ { "data" : "MX80-48T" } ], "clei-code" : [ { "data" : "CMMAX10BRD" } ], "model-number" : [ { "data" : "CHAS-MX80-48T-S" } ] }, //* additional JSON objects *// ] } ] } ] }
Release Information
Command introduced in Junos OS Release 14.2R1