[Issue #83] JSON services should respond with application/json mimetype

- fixed v1 and v2
- added testcases