How to convert standard json into prolog json?

Putting an underscore on the json is pretty unique to prolog afaik. The context here is Can I get some help please taking this jwt encoder over the finish line?

I’m trying to implement jwt in prolog and provide it to some other folks to use. Most of the implementations allow for spec-compliant json. For example GitHub - mpdavis/python-jose: A JOSE implementation in Python

>>> from jose import jwt
>>> token = jwt.encode({'key': 'value'}, 'secret', algorithm='HS256')
u'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ2YWx1ZSJ9.FG-8UppwHaFp1LgRYQQeS6EDQF7_6-bMFegNucHjmWg'

so if this source code is sitting on someone’s laptop, they can just load python and go jwt.encode({'key': 'value'},'k'). I was hoping I could provide the same ease of use in prolog. If I implement this and deliver it to someone else, they’re not going to know to use _{'key': 'value'} instead, and I would prefer that they don’t have to save a single line in a file just so I can open it and read it from stream.

I just wanted to confirm that basically my only option is to put in the readme that they have to pre-pend the json with an underscore.