This can throw when you have objects with circular references.

> TypeError: Converting circular structure to JSON