when calling the save() method on the Model. I get an JSON.parse EXCEPTION error.
after some debugging I found that the attributesMetadata variable filled in the JsonApiModel.prototype.save function returns an 'undefined' value.
this is the payload send to the api:
"data": {
"type": "organisations",
"id": "1",
"attributes": {}
}