Allow user-defined objects having custom toJson() value be respected before throwing.