Name this `getJsonBytes` and have it return a `byte[]`. The functions that use it actually need the byte array.