convert JSON Type to Byte array format in java November 24, 2023 by Tarik Get the bytes of the string: obj.toString().getBytes(theCharset);