I am working on converting angularjs application to react and decided to use axios for API request. Everything work fine except some response body with JSON type but the boolean values are string type not boolean. It works fine with angularJs $http but some of endpoints returns like that.
The modules are AngularJs + Typescript 2.9.1 + axios 0.19.0
let request = Axios({
...requestConfig,
url: resource, method: 'get', responseType: 'json'
}).then(response => response);
and the response body is
{
some: "true"
}
but I am excepting
{
some: true
}
Any ideas?