How To Exclude An Object's Id Property Before Or During $.tojson
I'm writing a custom REST adapter for ember-data users with a django rest framework app and need to build a JSON string to do POST/PUT. The only problem is I can't seem to chain an
Turns out this was really simple
var json_data = record.toJSON();
delete json_data.id;
var data = $.param(json_data);
Now instead of
id=0&username=dat
I now get
username=dat
You may like these posts
Post a Comment for "How To Exclude An Object's Id Property Before Or During $.tojson"