Added JSON encoding to circular object to show error