JSON link: https://dbd.tricky.lol/api/randomperks?role=survivor
I have: $(eval const a=$(urlfetch json LINK); a[0].name;)
gives me: Cannot read properties of undefined (reading 'name')
$(eval const a=$(urlfetch json LINK is for sure getting the data
for example:
$(eval const a=$(urlfetch json https://dbd.tricky.lol/api/randomperks?role=survivor); let s = JSON.stringify(a).slice(0, 2); s)
is returning
{"
Data:
{"Resilience":{"categories":["navigation","safeguard","strategy"],"name":"Resilience","description":"You are motivated in dire situations. Grants {0}% additional speed when repairing, sabotaging, healing, unhooking, vaulting, cleansing or blessing a Totem, opening exit gates, and unlocking while injured.","role":"survivor","character":null,"tunables":[["3","6","9"]],"modifier":"Resilience","teachable":0,"image":"UI/Icons/Perks/iconPerks_resilience.png"},"S34P01":{"categories":null,"name":"Potential Energy","description":"Your arcane abilities have adapted to The Entity's Realm after centuries of wandering, granting you unprecedented control over its many devices.
After working on a generator for {0} uninterrupted seconds, press the Active Ability Button 2 to activate this perk. When this perk is active, repairing the generator will charge this perk instead of making the generator progress. For each 1.5% of generator repair, the perk will gain 1 token, up to {1} tokens.
While this perk has at least one token and you are working on a generator, you can press the Active Ability Button 2 to consume all the tokens and instantly make the generator progress by 1% for each token. This perk then deactivates.