D
D
Denis Denis2015-12-21 08:20:59
JSON
Denis Denis, 2015-12-21 08:20:59

Is it necessary to parse JSON?

Hey! I apologize in advance for a possibly stupid question.
Suppose we receive data from the server in JSON format as an array with one element in which there are a bunch of objects.
Or data from MySQL to node comes as an object with a single property - an array.
You can just work with data as data[0], inside the same objects, that is, properties are available?
Or does the statement JSON objects ≠ JavaScript objects impose some kind of restriction?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-12-21
@golovewkin

if a valid json comes in response, then you can immediately work with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question