So you need to convert a .yaml file to a flattened JSON map in Java? I won’t ask why.
Requirements/What I am using:
This is how to convert a YAML file to a flattened JSON map.
Here is a random example I grabbed from GitHub (https://raw.githubusercontent.com/Praqma/helmsman/master/examples/example.yaml taken from Praqma/helmsman: Helm Charts as Code (github.com))
# version: v3.4.0 # context defines the context of this Desired State File. # It is used to allow Helmsman identify which releases are managed by which DSF. # Therefore, it is important that each DSF uses a unique context. context: test-infra…