M
M
Master Ruby2021-10-25 23:09:01
Node.js
Master Ruby, 2021-10-25 23:09:01

How to get data inside an array?

There is the following code:

await page.on('response', async (response) => {
        if (response.url() == "https://capuk.org/ajax_search/capmoneycourses) {
            console.log('XHR response received');
            console.log(await response.json());
        }
    });

And accordingly the answer is:

61770e6b89e9a201130616.png

Instead of data, I get an object, how would I get the full data?
Thank you all in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2021-10-26
@Dunaevlad

https://nodejs.org/dist/latest-v17.x/docs/api/cons...
Note the depth parameter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question