And one more: this one handles the case where we e...
# serialization
t
And one more: this one handles the case where we expect an array, but instead we get a single object. So instead of:
Copy code
items: [ { }, {} ]
we get:
Copy code
items: { }
This will allow us to always treat it as an array.
If anybody has comments on how to make this cleaner, I am all ears. Thank you.
s
p
I'd say fix your backend first? Why should an empty list become an object?
t
If I had that power, and the backend was not so ‘brain-dead’, that would be option. I would also reduce the 8 different date styles into one. But alas, we cannot all be working on pure clean new APIs. 🙂
p
We just talk with each other and make things better ^^
t
You are living the dream! 🙂