Twitch helix stream status getJSON migration

I still don’t understand how calling a simple “Online/Offline” function works with this new API