indeed this should be configurable. Even for the Java HR client the marshaller might be specified, for clients written in other languages an custom marshaller would be needed.