Refactoring (Add setContentType For json api call)