language: Python (python 2.7.3)
date: 105 days 16 hours ago
link:
visibility: private
1
2
3
4
5
6
7
8
import json
L = [b'\xff\xff\xff\xff'.decode("latin1")]
print(L)
s = json.dumps(L)
print(s)
LL = json.loads(s)
print(LL)
assert all(b == b"\xff" for b in LL[0].encode("latin1"))