https://rayka-co.com/lesson/compare-x...
Network automation protocols such as NETCONF, RESTCONF, gNMI, and Ansible use XML, JSON,, YAML or Protobuf data structures as a common language for data exchange between network devices and automation controller.
In this section we will have a practical overview and comparison between XML, JSON and YAML data formats or structures. Protobuf will be discussed in gNMI section.