Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Dear Shopify Please Pick One!

Dear Shopify Please Pick One!

garyrgilbert
Shopify Partner
432 41 189

@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)