We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks for this library!
Right now YAMLToJSON prints the following YAML
YAMLToJSON
t: a
as {"t":"a"}.
{"t":"a"}
Could you add support for printing the YAML as
{ "t": "a" }
Basically add a way to use json.MarshalIndent here.
json.MarshalIndent
The text was updated successfully, but these errors were encountered:
I tried making a PR, but I'm not that good at go :(
Sorry, something went wrong.
This might help
// Compile JSON body, err := yaml.YAMLToJSON(yamlContents) if err != nil { panic(err) } // Beautify var schemaObj map[string]interface{} if err := json.Unmarshal(body, &schemaObj); err != nil { panic(err) } body, err := json.MarshalIndent(schemaObj, "", " ") if err != nil { panic(err) }
No branches or pull requests
Thanks for this library!
Right now
YAMLToJSON
prints the following YAMLas
{"t":"a"}
.Could you add support for printing the YAML as
Basically add a way to use
json.MarshalIndent
here.The text was updated successfully, but these errors were encountered: