Answer the question
In order to leave comments, you need to log in
How to correctly read data fragments from arrays inside an array from JSON Response and not only in the interface?
Good afternoon!
I recently implemented a web service that generates lists of empty and available data attributes in JSON format, and the client side of the site reads them. And the lists are combined into one response body and its initial version after the service is started: [["test"],"DBA Service Error!"]
What array values mean this or that fragment (each fragment uses data from various DBMS used in the project)?:
- The first value consists of an array with empty data attributes.
- And the second one is also from the array, but responsible for the list of non-empty available attributes. But you won't see an array, since there is no such list in one of the DBMS! But you will see the error I implemented from its essence.
TypeError: Cannot read properties of null (reading '1')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question