JSON libraries should do it for you
# spicedb
j
JSON libraries should do it for you