PubSub message inner value comes as a JSON string

Been playing with PubSub today to catch gift sub events.

Noticed that the data.message value for the Subscription event comes as a JSON string
ie. I have to parse the entire message and then parse the data.message value again.

Just putting it out here and see if it’ll be fixed or reflected in the documentation.
Not sure if the other endpoints have the same issue.

PubSub just loves to nest JSON in JSON.

If you have found a documentation error please file it on the GitHub Issue Tracker

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.