Can you explain the Json in this get Particle.published code

I’m not positive about this, as I’ve never used the Python SSE client before, but I think you might need to check to make sure data is not an empty string before you call json.loads on it. An empty string is not valid JSON (hence the error) but you may get empty data from keepalive messages. Just guessing after reading this:

2 Likes