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