DavyJonesLocker/postgres_ext-serializers

Empty data returns null instead of []

Closed this issue · 0 comments

If there is no data the output JSON is:

{"tags":null, "notes":null}

Instead of:

{"tags":[], "notes":[]}

This is different behaviour than what the activemodel serializers normally produce and frameworks like ember throw errors.