Similar to #607. According to the Catalyst[1] docs it's possible to specify a data structure that is supposed to be serialized when requesting i.e. a JSON response.
[1] https://metacpan.org/pod/Catalyst::Controller::REST#status_ok
3EH53DZJGSPICPCI2KD6BGGFKAIY6EEOGAV7WBC4GIRGKJC6XWWAC