{"id":22423332,"url":"https://github.com/prantlf/v-yaml2json","last_synced_at":"2026-03-08T16:05:23.145Z","repository":{"id":173873517,"uuid":"651419839","full_name":"prantlf/v-yaml2json","owner":"prantlf","description":"Converts YAML input to JSON/JSON5 output.","archived":false,"fork":false,"pushed_at":"2025-03-22T21:51:49.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T22:18:36.635Z","etag":null,"topics":["convert","json","json5","jsonc","vlang","vlang-package","yaml","yaml2json"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prantlf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-09T07:43:50.000Z","updated_at":"2025-03-22T21:51:52.000Z","dependencies_parsed_at":"2024-01-02T00:26:20.423Z","dependency_job_id":"bd4b52a3-ae13-47c5-aa44-3a3382997151","html_url":"https://github.com/prantlf/v-yaml2json","commit_stats":null,"previous_names":["prantlf/v-yaml2json"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fv-yaml2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fv-yaml2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fv-yaml2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fv-yaml2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/v-yaml2json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248731690,"owners_count":21152838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["convert","json","json5","jsonc","vlang","vlang-package","yaml","yaml2json"],"created_at":"2024-12-05T18:10:07.789Z","updated_at":"2026-03-08T16:05:18.126Z","avatar_url":"https://github.com/prantlf.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaml2json\n\nConverts [YAML] input to [JSON]/[JSON5] output.\n\nUses [prantlf.json] and [prantlf.yaml]. See also the [jsonlint] tool.\n\n## Synopsis\n\nConvert a file `config.yaml` to a file `config.json`, append a trailing line break to the JSON output and make the output more readable by indentation:\n\n    yaml2json config.yaml -o config.json -lp\n\nConvert a file using standard input and standard output, as condensed as possible, no trailing line break:\n\n    cat config.yaml | yaml2json \u003e config.json\n\n## Usage\n\n    yaml2json [options] [\u003cyaml-file\u003e]\n\n    Options:\n      -o|--output \u003cfile\u003e    write the JSON output to a file\n      -t|--trailing-commas  insert trailing commas to arrays and objects\n      -s|--single-quotes    format single-quoted instead of double-quoted strings\n      --escape-slashes      escape slashes by by prefixing them with a backslash\n      --escape-unicode      escape multibyte Unicode characters with \\u literals\n      -l|--line-break       append a line break to the JSON output\n      -p|--pretty           print the JSON output with line breaks and indented\n      -V|--version          print the version of the executable and exit\n      -h|--help             print th usage information and exit\n\n    If no input file is specified, it will be read from standard input.\n\n## Build\n\n    v -prod yaml2json.v\n    v fmt -w .\n    v vet .\n    npx conventional-changelog-cli -p angular -i CHANGELOG.md -s\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code.\n\n## License\n\nCopyright (c) 2023-2025 Ferdinand Prantl\n\nLicensed under the MIT license.\n\n[prantlf.json]: https://github.com/prantlf/v-json\n[prantlf.yaml]: https://github.com/prantlf/v-yaml\n[jsonlint]: https://github.com/prantlf/v-jsonlint\n[JSON]: https://www.json.org/\n[JSON5]: https://spec.json5.org/\n[YAML]: https://yaml.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fv-yaml2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Fv-yaml2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fv-yaml2json/lists"}