S
S
Stepgor2019-08-19 05:58:53
Node.js
Stepgor, 2019-08-19 05:58:53

How to process an array?

I send a request to a page and it gives me a pure array, not JSON , but just an array, but when processing it, it processes it as a string, how to process it correctly? [{},{},{}] - string

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Inviz Custos, 2019-08-19
@Stepgor

console.log(JSON.parse('[{},{},{}]'));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question