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

export-format (JSON)

date_range 14-Nov-24

Syntax

content_copy zoom_out_map
export-format {
    json {
        ietf;
        verbose;
    }
    state-data {
        json {
            compact;
        }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit system]

Description

Specify the default implementation of the serialization to use for exported data in the given format. This statement affects configuration data and command output that is displayed in the requested format.

Options

json

Define which implementation of the serialization to use for configuration data emitted in JavaScript Object Notation (JSON) format.

Acceptable values include:

  • ietf—Emit JSON data according to the encoding rules defined in Internet drafts draft-ietf-netmod-yang-json-09, JSON Encoding of Data Modeled with YANG, and draft-ietf-netmod-yang-metadata-06, Defining and Using Metadata with YANG.

  • verbose—Emit JSON data in verbose format, which emits all objects as JSON arrays.

    You can configure the verbose statement starting in Junos OS Release 16.1R1, even though the statement is not exposed in the Junos OS CLI until a later release.

  • Default: ietf in Junos OS Release 16.1R1 and later; verbose in earlier releases.

state-data

Specify the format for emitting state data.

  • json compact—Emit JSON-formatted state data in compact format where only the objects that have multiple values are emitted as JSON arrays. Junos devices, by default, emit state data in non-compact format, which emits all objects as JSON arrays.

    This statement is deprecated starting in Junos OS Release 24.4R1 and Junos OS Evolved Release 24.4R1

Required Privilege Level

maintenance—To view or add this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 16.1.

state-data json compact statement added in Junos OS Release 17.3R1.

state-data json compact statement deprecated in Junos OS Release 24.4R1 and Junos OS Evolved Release 24.4R1.

footer-navigation