DEV Community

Finn
Finn

Posted on

How do I clean up my json response?

Hey there! I am trying to store a json response in a mongodb database, but that isn't working because of the annoying format that looks like this: { '0': '9M0FY9GXM0' }

Does anyone know how to make it just output the second string instead of all of it when using for example "console.log(res.data)"?

Thank you very much!

Top comments (0)