torrust-tracker icon indicating copy to clipboard operation
torrust-tracker copied to clipboard

Serialization from Bencode to JSON

Open josecelano opened this issue 1 year ago • 1 comments

  • Bencode format: https://en.wikipedia.org/wiki/Bencode
  • JSON format: https://www.json.org/json-en.html

In some issues, we need to be able to serialize generic bencoded data into a JSON.

Issues requiring this feature

  • https://github.com/torrust/torrust-tracker/issues/672

Implementation

We are discussing how to implement it:

  • https://github.com/torrust/teps/discussions/15

josecelano avatar Feb 02 '24 12:02 josecelano

I've implemented the first version of a library to do it:

https://github.com/torrust/bencode2json

The crate has not been published yet; we are still reorganizing the code and collecting feedback.

josecelano avatar Oct 17 '24 16:10 josecelano

I've implemented the first version of a library to do it:

https://github.com/torrust/bencode2json

The crate has not been published yet; we are still reorganizing the code and collecting feedback.

I have just published the new crate bencode2json:

https://crates.io/crates/bencode2json

josecelano avatar Nov 01 '24 11:11 josecelano