{"id":23045499,"url":"https://github.com/cdxoo/xson-utils","last_synced_at":"2026-05-09T09:55:33.592Z","repository":{"id":143744704,"uuid":"249092660","full_name":"cdxOo/xson-utils","owner":"cdxOo","description":"BSON and JSON related Command Line Utilities","archived":false,"fork":false,"pushed_at":"2020-03-29T02:17:12.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T16:14:18.592Z","etag":null,"topics":["bson","command-line-tool","json","json-schema","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/cdxOo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-03-22T01:34:41.000Z","updated_at":"2020-03-29T02:17:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"af318adf-8468-46a2-863a-0116af8d30de","html_url":"https://github.com/cdxOo/xson-utils","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fxson-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fxson-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fxson-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fxson-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdxOo","download_url":"https://codeload.github.com/cdxOo/xson-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922248,"owners_count":20855345,"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":["bson","command-line-tool","json","json-schema","kotlin"],"created_at":"2024-12-15T21:20:57.747Z","updated_at":"2026-05-09T09:55:28.537Z","avatar_url":"https://github.com/cdxOo.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xson-utils\n\nJVM based command line utilities for BSON and JSON written in Kotlin.\n\n* bsontojson\n    \n    Reads a BSON file and prints its contents as mongodb extended JSON.\n    Available mongodb-ext-json modes are \"extended\", \"relaxed\" and \"shell\". Default is \"relaxed\".\n    See the [mongodb-ext-json documentation](https://mongodb.github.io/mongo-java-driver/4.0/bson/extended-json/) for more information regarding the modes.\n\n* json-schema-inferrer\n    \n    Takes a JSON document or a collection of JSON documents from either STDIN or an input file and infers the json schema definition.\n    The utility is mostly just a wrapper for [sassquatch/json-schema-inferrer](https://github.com/saasquatch/json-schema-inferrer) library functions.\n   \n\n\n## Installation\n    \nIn addition to the  instuctions below, you can also download the utilities from the [release assets](https://github.com/cdxOo/xson-utils/releases).\n\n### bsontojson\n    \n    curl -sSLO https://github.com/cdxOo/xson-utils/releases/download/0.1.0-alpha/bsontojson \\\n        \u0026\u0026 chmod a+x bsontojson\n\n    # verify the executables sha512sum (optional but recommended)\n    curl -sSLO https://github.com/cdxOo/xson-utils/releases/download/0.1.0-alpha/bsontojson.sha512 \\\n        \u0026\u0026 sha512sum -c bsontojson.sha512 bsontojson\n\n### json-schema-inferrer\n\n    curl -sSLO https://github.com/cdxOo/xson-utils/releases/download/0.1.0-alpha/json-schema-inferrer \\\n        \u0026\u0026 chmod a+x json-schema-inferrer\n\n    # verify the executables sha512sum (optional but recommended)\n    curl -sSLO https://github.com/cdxOo/xson-utils/releases/download/0.1.0-alpha/json-inferrer-schema.sha512 \\\n        \u0026\u0026 sha512sum -c json-inferrer-schema.sha512 json-schema-inferrer\n\n## Usage\n    \n    # bsontojson\n    bsontojson -m extended my-bson-file.bson\n\n    # json-schema-inferrer\n    json-schema-inferrer --help\n    echo '[{ \"foo\": \"bar\"}, { \"foo\": \"baz\" }]' | ./json-schema-inferrer\n    ./json-schema-inferrer -f my-json-file.json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdxoo%2Fxson-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdxoo%2Fxson-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdxoo%2Fxson-utils/lists"}