Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

export-format

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 16.1.

Description

Specify the default implementation of the serialization to use for exported data in the given format. This statement only affects Junos OS configuration data that is displayed in the requested format.

Options

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

Acceptable values include:

Default: ietf

Note

Starting in Junos OS Release 17.3R1, OpenConfig supports the operational state emitted by daemons directly in JSON format in addition to XML format. To configure JSON compact format, specify the following CLI command:

set system export-format state-data json compact.

This CLI command converts XML format to compact JSON format. Else, it emits the JSON in non-compact format.

Required Privilege Level

maintenance—To view this statement in the configuration.

maintenance-control—To add this statement to the configuration.

Release History Table
Release
Description
Starting in Junos OS Release 17.3R1, OpenConfig supports the operational state emitted by daemons directly in JSON format in addition to XML format. To configure JSON compact format, specify the following CLI command:

set system export-format state-data json compact.

This CLI command converts XML format to compact JSON format. Else, it emits the JSON in non-compact format.