Page 1 of 1

Make JSON empty values

Posted: Wed Jan 23, 2019 12:35 pm
by Dave23
Morning all,

I'm using "Make JSON" app to generate a json which i am then using to generate an order in our production environment. I am using variables from xml for the values in the json.

The problem I am having is that if one of those values is empty, the json will submit the order but in place of the empty value it will use 'undefined'.

Is there a way to remove all name/values when a value is empty?

Thanks

Re: Make JSON empty values

Posted: Wed Jan 23, 2019 1:56 pm
by jan_suhr
First, there is a section on the Forum for App questions.


I'll make an update of the App that will handle empty variables. I hope that it can be ready early next week.

Re: Make JSON empty values

Posted: Wed Jan 23, 2019 4:33 pm
by jan_suhr
Dave, can you send me an email with some example of your variables and the JSON you are trying to do.

I can then send you a "Beta" of the app for testing.

Re: Make JSON empty values

Posted: Wed Jan 23, 2019 9:41 pm
by Dave23
Hi jan_suhr,
Thanks for this, appreciate it. I have just pm'd you with both sample xml and json.

Re: Make JSON empty values

Posted: Fri Jan 25, 2019 4:13 pm
by jan_suhr
There is now a new version on the App store that has been fixed to solve this problem

Re: Make JSON empty values

Posted: Thu Jan 31, 2019 11:57 am
by Dave23
Hi jan,

I've updated to version 7 in the app store, however when i refresh in switch itself the "make json" app disappears. Is this a bug, or am doing something wrong? Every other version works fine and i can versions 1-6 in switch.

Thanks