I'm trying to compare the data in dataverse with a Excel file to see whether the dataverse rows needs to be updated or not.
I'm using compose on each item from dataverse and a combination of compose, json parse and select to create two output values that I can compare to see if they match or not. I have to do this because as far as I can tell Logic Apps has no sane way of comparing data otherwise.
The outputs are working as intended the only problem is that fields with no value from dataverse show up as "name": "null" and the Excel data with no value shows up as "name": "" which causes my compare to fail.
Is there any to easily replace all "null" or "" with either "" or "null"?
Dataverse "output" example
[
{
"name": "john"
"last": "doe"
"address": "null"
}
]
Excel "output" example
[
{
"name": "john"
"last": "doe"
"address": ""
}
]
The actual data has many more fields so I would prefer to somehow just look over the whole "output" and match anything that is either "" or "null" and replace it with something and not go over every possible field one by one.

