diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c
index d22aa131c54af444a72ba6c9b54cf184bb4016af..f0cbb3959961288dc8653b8c9f281fa8a3de20ea 100644
--- a/src/backend/utils/adt/json.c
+++ b/src/backend/utils/adt/json.c
@@ -843,9 +843,8 @@ json_categorize_type(Oid typoid,
 {
 	bool		typisvarlena;
 
-	/*
-	 * We should look through domains here, but we'll wait till 9.4.
-	 */
+	/* Look through any domain */
+	typoid = getBaseType(typoid);
 
 	/* We'll usually need to return the type output function */
 	getTypeOutputInfo(typoid, outfuncoid, &typisvarlena);