Writing to JSON - writing 'null' if blank

Hi there,

I’m scraping information from a website, assigning them to a variable and then exporting it as an argument to then write as a JSON file (all this is new to me!). In some instances, the scraped values can be missing and in these instances I need to write null on the JSON file.

Is there an easy way that I can make it so ‘null’ is written if the value is blank?

Thanks for your help.

just share some data with us for more illustrate your case. Thanks

I actually managed to solve this with a try catch on the assign activity :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.