Don't set paths to the views directories, if response type is json.