Instead of removing and re-adding each property separately in expansion create a new object
Instead of removing and re-adding each property separately in expansion create a new object

conjecto/JsonLD,lanthaler/JsonLD,cKlee/JsonLD