My Local Json Server data is something like this: 
I used it in server:
import axios from 'axios';
const Server = axios.create({
baseURL: 'http://localhost:3000/office',
timeout: 5000,
headers: {'accept': 'application/json'}
});
export default Server;
But I'm unable to fetch it, I need help in fetching it from local json server.
export function fetchJobs(props) {
return function(dispatch){
dispatch({type: JobsTypes.FETCH_OFFICE});
Server
.get('/office')
.then((response) => {
dispatch({type: JobsTypes.FETCH_OFFICE_SUCCESSFUL,payload:response.data });
})
.catch((err) => {
dispatch({type:JobsTypes.FETCH_OFFICE_FAILED,payload:err});
});
}
}
baseURL: 'http://localhost:3000'