{"id":24380526,"url":"https://github.com/vijayshinva/bencode2json","last_synced_at":"2025-10-12T23:02:14.534Z","repository":{"id":144187130,"uuid":"100618276","full_name":"vijayshinva/Bencode2Json","owner":"vijayshinva","description":"A .NET Core Library for converting Bencoded Dictionaries to Json Documents","archived":false,"fork":false,"pushed_at":"2022-12-07T18:35:26.000Z","size":80,"stargazers_count":2,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T22:54:09.343Z","etag":null,"topics":["bencode","bencode-parser","dotnet-core","json","torrent","torrent-files"],"latest_commit_sha":null,"homepage":"","language":"C#","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/vijayshinva.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":"2017-08-17T15:26:32.000Z","updated_at":"2024-11-21T17:58:14.000Z","dependencies_parsed_at":"2023-04-04T21:33:27.672Z","dependency_job_id":null,"html_url":"https://github.com/vijayshinva/Bencode2Json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayshinva%2FBencode2Json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayshinva%2FBencode2Json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayshinva%2FBencode2Json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayshinva%2FBencode2Json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vijayshinva","download_url":"https://codeload.github.com/vijayshinva/Bencode2Json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312172,"owners_count":21082638,"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":["bencode","bencode-parser","dotnet-core","json","torrent","torrent-files"],"created_at":"2025-01-19T08:19:52.565Z","updated_at":"2025-10-12T23:02:14.528Z","avatar_url":"https://github.com/vijayshinva.png","language":"C#","readme":"# Bencode2Json\n\nA .NET Core Library for converting Bencoded Dictionaries to Json Documents \n\n[![Build status](https://ci.appveyor.com/api/projects/status/fcije8tvireboq8d/branch/master?svg=true)](https://ci.appveyor.com/project/vijayshinva/bencode2json/branch/master)\n[![CodeFactor](https://www.codefactor.io/repository/github/vijayshinva/bencode2json/badge)](https://www.codefactor.io/repository/github/vijayshinva/bencode2json)\n[![NuGet version](https://badge.fury.io/nu/bencode2json.svg)](https://badge.fury.io/nu/bencode2json)\n\n## Overview\nBencoded dictionaries like the one shown below can easily be coverted to JSON using this library.\n\n##### Bencode\n```bencode\nd5:debug4:truee\n```\n##### JSON\n```json\n{\n    \"debug\": \"true\"\n}\n```\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n- [License](#license)\n\n## Installation\n\nInstall the package **Bencode2Json** from [NuGet](https://www.nuget.org/packages/Bencode2Json/) \nor install it from the [Package Manager Console](https://docs.microsoft.com/en-us/nuget/tools/package-manager-console):\n\n```\nPM\u003e Install-Package Bencode2Json\n```\n\n## Usage\n\n```C#\nusing Bencode2Json;\n...\n...\n// BencodedData takes any Stream\nvar bencodedData = new BencodedData(dataStream);\nvar json = bencodedData.ConvertToJson();\n```\n\n## Examples\nDemos in the Examples folder.\n\n#### TorrentFileParser\nThis demo parses an torrent file (which is basically a bencoded dictionary) and converts it to JSON. This JSON is then passed to the popular JSON library JSON.NET for converting it into C# objects.\n\n## Reference\n- https://en.wikipedia.org/wiki/Bencode\n- https://en.wikipedia.org/wiki/Torrent_file\n\n\n## License\n[![license](https://img.shields.io/github/license/vijayshinva/bencode2json.svg)](https://github.com/vijayshinva/Bencode2Json/blob/master/LICENSE)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fvijayshinva%2FBencode2Json.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fvijayshinva%2FBencode2Json?ref=badge_shield)\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fvijayshinva%2FBencode2Json.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fvijayshinva%2FBencode2Json?ref=badge_large)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijayshinva%2Fbencode2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvijayshinva%2Fbencode2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijayshinva%2Fbencode2json/lists"}