Serialize data as JSON with `Accept: application/json`

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

Created by  Maximilian Bosch  on February 13, 2019
3EH53DZJGSPICPCI2KD6BGGFKAIY6EEOGAV7WBC4GIRGKJC6XWWAC
Change contents