Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show | display json

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
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

content_copy zoom_out_map
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

footer-navigation