trailing zeros in JavaAssets.toByteArray(in)

json parser generates exception because of trailing zeros in JavaAssets.toByteArray(in)