Parsing JSON Data Sent w/ Webhook

I’ve gotten very familiar with parsing JSON data returned via an API call but I’ve never had to parse data sent as a payload via webhook. I’ve been reading about $args variables and some other things, but I haven’t been able to make it work.

Can anyone point me in the right direction?

It's been a while… if I remember correctly

?test=value is extracted by $args.test

So you are just having the webhook data sent to the piston URL? That should end up in $args as you said, and fire the piston. So dot notation is not pulling data out of $args, just using $args.(key name)?

This might explain it better…

It’s not. I guess a good starting point would be for me to be able to see what is being sent to webCoRE. How do I log that so I can pull out the values I need.

It’s not. I guess a good starting point would be for me to be able to see what is being sent to webCoRE. How do I log that so I can pull out the values I need?

Google said to use the webhook site to see what is being sent.

https://webhook.site/#!/view/34babc46-4513-4c17-ae26-16df33776760

To see what Webcore got, you still have to look at $args, but you can just print the string to the console to see the raw data: string($args) in an expression

This helps. Thanks.