I’m writing an internal-use extension that needs to serialise tickets and transactions as JSON to send them to an external service. Rather than re-invent the wheel I thought I might be able to reuse some of the REST2 machinery to do this, without having to make an actual HTTP/REST request, but I can’t see how. Would this be possible at all?
I know most records have a Serialize
method through RT::Record
which I would intend to use if I can’t just get the same information from REST2, but I’d be re-implementing things already in there.