belongsTo serialize id to JSON as string


#1

Hi,

Why is ember serializing foreign key id as string in JSON?

model:

cityId: DS.belongsTo(‘city’, {async: true}), //serialize to JSON as string

cityId: DS.attr(‘number’), //serialize to JSON as number

Please help