I've got an API which I make a get
request to fetch data. When i try to save the Id
, I see Javascript round the last digit of it and it makes my program to break!
I see THIS QUESTION but how can I save each Id
as string
?
I'm using a global array to store the selected items' data so, anyway to save one attribute of a JSON
in string
?
I'm going to have (for example) 3 items and make another get
request for each Id
:
axios.get(`http://api.nemov.org/api/v1/Market/Symbol/${this.props.ID}`)
One of those Id
s, is: 9481703061634967
but JS convert that to 9481703061634968
so the get
request is broken!
Any solution?