Direct bencoding from json string