use angular.toJson to remove properties added by angular (like $$hashKey