Pass binary data to Jason.encode/2

There is no native encoding for binary data in json. You can e.g. base64 encode it to a string and put that in the json.