Have you tried using other client libraries? Valkey-Glide Java supports JSON. See:
https://github.com/valkey-io/valkey-glide/tree/main/java
https://github.com/valkey-io/valkey-glide/wiki/General-Concepts#modules-api
Disclaimer: I'm a Valkey-Glide maintainer and would be happy to help if you open an issue! 😊