In the output, where the goods are labeled “array”, but there is no content of this array Скриншот 29-08-2022 11:06:09.jpg . Tell me how it is possible to output the contents of this array and then work with it, but it is better to return it to the request.
First off, welcome to the Pipedream community. Happy to have you!
Thanks for the screenshot. Have you verified that your Node.js step is actually setting an array in the body of your response?
If an array was passed there, the response would attempt to JSON serialize the array. The string "Array" means that there must be an issue with the type of data being passed at that key.
Thanks for the screenshare, that’s very helpful to follow along.
Pipedream supports multi-dimensional complex JSON objects, that’s not the issue I assure you.
Supporting a custom application is outside of the scope of support we can offer. But I recommend you take a look at the structure of the PHP object you’re trying to serialize into JSON.
It’s most likely an issue with serialization before the payload is sent to your Pipedream webhook.
If you’re just looking to output the contents of an array and not the word “Array”, there are a few different ways you can do this. One way would be to use the print_r() function: