Return "null" value in Return data from API

I’m using the “Return data from API” function to send data back when an API endpoint is called.

Is there a way to return null for any empty values? Currently, these empty values are being returned as empty string. i.e. “key”: “”