I am putting the downloaded json object into an angular $scope, but I found that angular adds some framework dependent properties inside it.
I want to send the modified object back to server, is there a convenient way I can remove angular properties and get the plain object without angular scope properties like $$hashkey?
EDIT:
The possible duplicate question does not provide the answer I needed.
Calling angular.toJson gives me a plain string "$SCOPE", while calling angular.copy throws an error. I guess they are not designed to work with the $scope object itself?