0

so I have this get request

axios.get("/eshta")
.then(data=> console.log(data.data))

this returns json like this {rate: 2.5, apr: 2.8}

how can I store this json into an Dictionary object that I can use elsewhere

Moe
  • 3
  • 4

1 Answers1

0

You can use JSON.parse() to convert data returned into an object reference

auditt _98
  • 187
  • 1
  • 4