I have a problem when I want to sending data using byte format in UDP protocol, the problem is when I try to create a data with type json object, I can\'t get the byte format of
Assuming the JSONObject you mention is from this, you can get the bytes like below
sendData = obj.toString().getBytes("utf-8");