JSON has a few advantages over YAML in this context:
* No extra dependency: Removed ruamel.yaml; using the standard library
json module.
* Simpler code: No YAML formatting configuration (indent, flow style,
string presentation, etc.). JSON serialization is straightforward.
* Faster generation: JSON serialization is typically faster and more
predictable than YAML formatting.
* Native OpenAPI format: JSON is the native OpenAPI format. Many tools
prefer JSON, reducing potential compatibility issues.
* Better tooling support: JSON is widely supported. Tools like oasdiff,
OpenAPI validators, and code generators work well with JSON.
* Fewer formatting edge cases: YAML can have edge cases (multiline
strings, special characters, quoting, scalars etc). JSON avoids these.
All the tools consumming the YAMLs have been updated namely oasdiff for
conformance tests, docusaurus config and the genrator.
Signed-off-by: Sébastien Han <seb@redhat.com>