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
originalData = `env: CODE_SCAN: type: string value: True readonly: true` json, err := yaml.YAMLToJSON([]byte(originalData)) if err != nil { fmt.Printf("failed: %+v", err) } fmt.Println(string(json))
when I use yaml.YAMLToJSON([]byte(CiPipeLine)), it print: {"env":{"CODEDOG_CONCURRENT_SCAN":{"readonly":true,"type":"string","value":true}}}
yaml.YAMLToJSON([]byte(CiPipeLine))
{"env":{"CODEDOG_CONCURRENT_SCAN":{"readonly":true,"type":"string","value":true}}}
The text was updated successfully, but these errors were encountered:
I found that 'true' is lowercase just now
Sorry, something went wrong.
No branches or pull requests
when I use
yaml.YAMLToJSON([]byte(CiPipeLine))
, it print:{"env":{"CODEDOG_CONCURRENT_SCAN":{"readonly":true,"type":"string","value":true}}}
The text was updated successfully, but these errors were encountered: