diff --git a/lib/pg/text_decoder/json.rb b/lib/pg/text_decoder/json.rb index 93ecd55d0..c5a4c118e 100644 --- a/lib/pg/text_decoder/json.rb +++ b/lib/pg/text_decoder/json.rb @@ -10,7 +10,7 @@ module TextDecoder # As soon as this class is used, it requires the ruby standard library 'json'. class JSON < SimpleDecoder def decode(string, tuple=nil, field=nil) - ::JSON.parse(string, quirks_mode: true) + ::JSON.parse(string) end end end diff --git a/lib/pg/text_encoder/json.rb b/lib/pg/text_encoder/json.rb index 36bbc704a..51e6a2cc9 100644 --- a/lib/pg/text_encoder/json.rb +++ b/lib/pg/text_encoder/json.rb @@ -10,7 +10,7 @@ module TextEncoder # As soon as this class is used, it requires the ruby standard library 'json'. class JSON < SimpleEncoder def encode(value) - ::JSON.generate(value, quirks_mode: true) + ::JSON.generate(value) end end end