Hello
Decided to get acquainted with django, I only know very superficial things.
In search of the perfect, decided to develop APIs using json-rpc. Library
django-modern-rpc.
Documentation checked a couple of examples, everything is fine.
But as soon as I decided to make a selection from DB and return it, then got error
{
"id": 1,
"jsonrpc": "2.0",
"error": {
"code": -32603,
"message": "Internal error: Unable to serialize result as valid JSON: Object of type QuerySet is not JSON serializable"
}
}
The question how to return samples, objects, etc.?
('ve seen examples where people use numpy, but I'm not sure the best solution)