I believe instead of returning false the JSON should return null for empty properties. I have also changed arrays from false to empty arrays []
Returning false changes the value type, this is an issue when parsing JSON with a strictly typed language.
Hi,
I believe instead of returning
false
the JSON should returnnull
for empty properties. I have also changed arrays fromfalse
to empty arrays[]
Returning false changes the value type, this is an issue when parsing JSON with a strictly typed language.http://jsonapi.org/format/
Happy to discuss. Cheers! 🎉