This is a single-file Python3 library for sending json-like data over sockets.
(Original repos was Python2, forked it to support Python3)
It allows sending lists, dictionaries, strings, etc. Any JSON-serializable data is accepted.
Example & test:
$python3 server_test.py &
$python3 client_test.py