S
S
Sergey Bondarenko2019-04-13 23:24:39
JavaScript
Sergey Bondarenko, 2019-04-13 23:24:39

Convert json object to string?

Hello, there was a problem from the server (Flask) on the fornt-end, I sent some result converted to json as an array, and so, I need to display this result in alert, I tried to do this but returned 'object OBJECT'. How to convert this to a string?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2019-04-13
@lietryit

JSON.parse
JSON.stringify

I
I'm Yoda, 2019-04-13
@Anadi

JSON.stringify(Your_JSON);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question