Thanks for reaching out on Microsoft Q&A!
In the designer view, Logic Apps often hides empty strings ("") and strips quotes for readability. When you save, the underlying JSON in code view still contains the correct representation.
The designer doesn’t show quotes because it assumes you’re entering raw text, not JSON. This can lead to misleading assumptions if someone expects to see "" for empty or quotes for literal strings.
Before publishing, check the JSON to confirm values. Instead of relying on visual cues, explicitly set:
@empty(variables('myVar'))
And consider default values, for example with:
coalesce()
or
if()
Also, you could remove the "" from the Code View and replace it with null.
Please click ‘Accept answer’ if you think my answer is helpful. Feel free to drop additional queries in the comments below!
Kind regards,
Sonny