convert databasereference to jsonarray code example
Example 1: jooq convert using gbk
DSL.field("convert({0} USING gbk)", tb.NAME);
Example 2: convert GLFWwindow* to IntPtr
// C++/CLR
// Convert to IntPtr
IntPtr ptr(window);
// Convert back to GLFWwindow*
(GLFWwindow*) ptr.ToPointer();
Example 3: how to convert a jsonobject to a dbobject
DBObject object = (DBObject) JSON.parse(obj.toString());
collection.insert(object)