No problem, it is interesting to have some context
Well, I would prefer help you to decode json instead, if this makes sense to you.
As indeed the json is the preferred way of communication.
If you are interested here is some docs:
Or here:
If you are ok I will take your feedback to write some docs about migration from simplePublishing to jsonPublishing.