Bencode is an encoding scheme used by Bittorent that is similar to JSON. It supports the encoding of integers, strings, lists, and dictionaries as follows:
Integers are encoded as i<number here>e
Strings are encoded as <length>:<length characters>
Lists are in the form l<multiple bencoded elements>e
Dictionaries have the form d<encoded key1><encoded value1> ... <encoded key n><encoded value n>d where keys must be strings and must be in sorted order