I am trying to feed a fetch request json htmlcontent into a dictionary but keep getting 'invalid syntax :' errors and as a primarily python person I am pulling my hair out trying to figure out why.
A basic version of the syntax looks as follows:
fetch(URL).then(result => result.json()).then(data => {"Data":data['htmlcontent']});
Can someone point me in the right direction here? Thanks for any and all help.