right, lemme try it tomorrow and send only the TeamName ingredient as below. When I get mms, it is generally less than 63, but some are more… Maybe I just need to develop a webhook for scores instead. Do you happen to know of a good example of someone parsing JSON webhook? I searched and cannot find one here. Meanwhile, I can just try XML.
I think there maybe some new features coming that will help you parse the returned data to your webhook in the Spark cloud so your core has to do less work. Coming soon!
It will be a good test to try a known small string.
@ScruffR, there is actually a new webhook feature that @Dave very recently deployed a new JSON parsing webhook capability. So if the webhook normally returns a large JSON payload, you can specify a parsing filter in the webhook to only return specific data. The parse is based on Mustache. For example, a 7 day forecast from openweather.json normally returns a 2K payload which would have to be parsed on the Core. With the new capability, you can get the temperature for all 7 days (and some other data) in less than 200 bytes! So the Cloud does all the p arsing work!
great!! I’ve been using XML parsing because for me, it is easier to code (without having to do a lot of work on a library). Having the access to “Cloud-based Spark JSON parsing” is huge. The JSON returns I see from ESPN and other sports score info services are very lengthly and have many levels of data.
Notice the response template. Out of the 7day forecast, it extracts just the day temperature, the ID and the condition (cloudy, snow, etc,). Easy, peasy!