export-format (JSON)
Syntax
export-format { json { ietf; verbose; } }
Hierarchy Level
[edit system]
Description
Specify the default implementation of the serialization to use for exported data in the given format. This statement only affects device configuration data 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:
|
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, use the
following 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 or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 16.1.