Make JSON empty values

Post Reply
Dave23
Member
Posts: 41
Joined: Thu Oct 12, 2017 4:42 pm

Make JSON empty values

Post 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
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Make JSON empty values

Post 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.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Make JSON empty values

Post 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.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Dave23
Member
Posts: 41
Joined: Thu Oct 12, 2017 4:42 pm

Re: Make JSON empty values

Post by Dave23 »

Hi jan_suhr,
Thanks for this, appreciate it. I have just pm'd you with both sample xml and json.
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Make JSON empty values

Post by jan_suhr »

There is now a new version on the App store that has been fixed to solve this problem
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Dave23
Member
Posts: 41
Joined: Thu Oct 12, 2017 4:42 pm

Re: Make JSON empty values

Post 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
Post Reply