use constants for default mime type;
set json mime type for all json api responses;