Post Process body requires JSON decoding?

Options

Working with the Post Process function and was struggling with retrieving data from the 'body' variable. Ultimately it turns out you have to use the json_decode filter before you can get any of the data from the body object. Is this expected?

If it is expected, it would be good to add this to the documentation as it wasn't at all obvious for me.

Answers

  • Cameron B
    Cameron B Member, Administrator

    ADMIN

    Options

    I just ran some experiments where I output records from my db as the response.

    Within my post process I use dot notation to extract all the ids.

    In my debug logs, I see it working as intended without the decode filter.

    What data are you trying to manipulate? Mind sharing what you're working with? I'll try and recreate it! :D