Unserializable result

Resolve unserializable result errors.

An unserializable result error indicates that the expression evaluated successfully, but its result cannot be serialized to JSON.

This typically happens when the expression returns an abstract type such as a raw weekday, user, or session object instead of a concrete scalar or collection. Refine the expression to return a serializable type, or convert the value with the appropriate CQL modifier.

Response

All error responses follow the Problem Details (RFC 9457) format, which defines the type, title, status, detail, and instance fields.

Here is an example of the response returned for this error:

{  "type": "https://croct.help/api/evaluation/unserializable-result",  "title": "The result cannot be serialized.",  "status": 422,  "detail": "Check if the query can be more specific or try to convert the result to a serializable type."}