JSON-ize asserts.