Using json in $(urlfetch json) actually parses a JSON string and converts it into a JavaScript Object. In the current example:
Deals: CardoMax buy 2 get 2 FREE! https://www.cardomax.com/discount/THINND/?ref=390 / PIA VPN: 4 extra months FREE with insane $2 / mo special https://www.piavpn.com/Thinnd / Xidax: $50 OFF for every $1k spent, & spin the wheel https://www.xidax.com/thinnd
Can be converted to an array of deals in javascript:
[
'CardoMax buy 2 get 2 FREE! https://www.cardomax.com/discount/THINND/?ref=390',
'PIA VPN: 4 extra months FREE with insane $2 / mo special https://www.piavpn.com/Thinnd',
'Xidax: $50 OFF for every $1k spent, & spin the wheel https://www.xidax.com/thinnd'
]
And converted to JSON with JSON.stringify([Array]) to the following string
["CardoMax buy 2 get 2 FREE! https://www.cardomax.com/discount/THINND/?ref=390","PIA VPN: 4 extra months FREE with insane $2 / mo special https://www.piavpn.com/Thinnd","Xidax: $50 OFF for every $1k spent, & spin the wheel https://www.xidax.com/thinnd"]
You can then use $(eval deals = $(urlfetch json https://pastebin.com/raw/something); deals[1]). Or get a random number between 0 and the length of the array to put as the array value.
Hope this gets you started.