A
A
Alexander2018-06-13 11:04:42
JavaScript
Alexander, 2018-06-13 11:04:42

Why does it give an error after parsing json?

I get json strings from php, parsing. In response, I get: {status: 0, errorid: 21, errormsg: "Wrong login data"} What's wrong?
try { res = JSON.parse(res) } catch(ex) { }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor P., 2018-06-13
@Jeer

What string do you want to parse? What was before JSON.parse?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question