No data type for node [MethodNode]

I have A field with that contain JSON. When I extract value of a key using JSON_EXTRACT it return list of strings. But when Creating a criteria Expression to call JSON function, during the call org.hibernate.QueryException: No data type for node: org.hibernate.hql.internal.ast.tree.MethodNode is thrown.
I have used an JSON_EXTRACT in criteria query before, but The values where only used for checking conditions, Here this is for selection and I think I has to do with the return type of the function