Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 22, 2022 10:12 pm GMT

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!


Original Link: https://dev.to/zetax/how-do-i-clean-up-my-json-response-22h2

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To