Add JSON mimetype to API.
Merge branch 'master' into component/tinge