diff --git a/Database/PostgreSQL/Typed/Types.hs b/Database/PostgreSQL/Typed/Types.hs
--- a/Database/PostgreSQL/Typed/Types.hs
+++ b/Database/PostgreSQL/Typed/Types.hs
@@ -800,7 +800,7 @@
   pgEncode _ = BSL.toStrict . JSON.encode
   BIN_ENC(BinE.json_ast)
 instance PGColumn "json" JSON.Value where
-  pgDecode _ j = either (error . ("pgDecode json (" ++) . (++ ("): " ++ BSC.unpack j))) id $ P.parseOnly JSON.json j
+  pgDecode _ j = either (error . ("pgDecode json (" ++) . (++ ("): " ++ BSC.unpack j))) id $ JSON.eitherDecodeStrict j
   BIN_DEC(BinD.json_ast)
 
 instance PGType "jsonb" where
@@ -810,7 +810,7 @@
   pgEncode _ = BSL.toStrict . JSON.encode
   BIN_ENC(BinE.jsonb_ast)
 instance PGColumn "jsonb" JSON.Value where
-  pgDecode _ j = either (error . ("pgDecode jsonb (" ++) . (++ ("): " ++ BSC.unpack j))) id $ P.parseOnly JSON.json j
+  pgDecode _ j = either (error . ("pgDecode jsonb (" ++) . (++ ("): " ++ BSC.unpack j))) id $ JSON.eitherDecodeStrict j
   BIN_DEC(BinD.jsonb_ast)
 #endif
 
diff --git a/postgresql-typed.cabal b/postgresql-typed.cabal
--- a/postgresql-typed.cabal
+++ b/postgresql-typed.cabal
@@ -1,5 +1,5 @@
 Name:          postgresql-typed
-Version:       0.6.2.4
+Version:       0.6.2.5
 Cabal-Version: >= 1.10
 License:       BSD3
 License-File:  COPYING
@@ -112,7 +112,7 @@
     if flag(scientific)
       Build-Depends: scientific >= 0.3
   if flag(aeson)
-    Build-Depends: aeson >= 0.7 && < 2.2
+    Build-Depends: aeson >= 0.7 && < 2.3
   if flag(HDBC)
     Build-Depends: HDBC >= 2.2
     Exposed-Modules:
