Dear Shopify Please Pick One!

garyrgilbert
Shopify Partner
397 40 163

@Shopify,

 

Could we have some Consensus on return values for your JSON objects? Mixing empty strings and null values is just bad for the same "type"

 

garyrgilbert_0-1675948727294.png

 

Pick one and run with it, then at least we know that we will consistently get the same for all field types instead of a mish mash of null and empty strings. Then we can develop our apps knowing what to expect. e.g. if its a string: "", array: [], object:{}, date/numeric:null, boolean: true/false.  I mean we were there and "suddenly" as of Jan 31 things changed, values changed and behavior changed.. I somehow doubt that this was mentioned in the changelogs.

 

It's not too much to ask for is it?

 

Cheers,

 

Gary

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Replies 0 (0)