Reputation: 41
Im using Axios and Javascript to perform simple HTTP requests. Running a simple GET request I get this raw response from the network tab of inspect.
"options": {
"values": [
{
"key": "VA",
"value": "12345"
},
{
"key": "TX",
"value": "54321"
},
{
"key": null,
"value": "11111"
}
]
}
However Axios request.data
is giving me
"options": {
"values": [
{
"key": null,
"value": "12345"
},
{
"key": null,
"value": "54321"
},
{
"key": null,
"value": "11111"
}
]
}
Any reason why Axios is parsing this incorrectly? Thanks!
Upvotes: 0
Views: 876
Reputation: 41
I've found the issue. I'm using Vue and the data was being manipulated incorrectly by a component before the console.log was taking place.
Upvotes: 1