diff --git a/server/postgres/src/utils.ts b/server/postgres/src/utils.ts
index 239aff7cf5..39b2bb4a0e 100644
--- a/server/postgres/src/utils.ts
+++ b/server/postgres/src/utils.ts
@@ -302,7 +302,12 @@ export function inferType (val: any): string {
   }
   if (Array.isArray(val)) {
     const type = inferType(val[0])
-    return type + '[]'
+    if (type !== '') {
+      return type + '[]'
+    }
+  }
+  if (typeof val === 'object') {
+    return '::jsonb'
   }
   return ''
 }