Currently marshalling to JSON is baked into the library. Would you accept a PR where we allow overriding this so that other content types can be used?