Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

export-format (JSON)

Syntax

Hierarchy Level

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.