Used angular.toJson fromJson and copy