json protocol
encode output data to python bytes
Merge pull request #21 from maralla/develop

json protocol