Fix json serialization consistency

Fixes #2070 

We were not consistent with how we treated serializing items array in JSON.

Doing an omitempty is harder for clients to parse as it requires them to special case nil checks in code versus just iterating empty arrays.