distinct-query_type crashes with TypeError if value contains ObjectId
Created by: yytosi
To reproduce
POST query/studies?query_type=distinct
{"fieldname": "_id"}
Exception TypeError: ObjectId('...') is not JSON serializable
Created by: yytosi
To reproduce
POST query/studies?query_type=distinct
{"fieldname": "_id"}
Exception TypeError: ObjectId('...') is not JSON serializable