I want to byte-wise receive encoded Json from a TCP-Client. My current program for receiving looks like: