Class: PG::TextDecoder::JSON

Inherits:
SimpleDecoder
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/text_decoder.rb

Instance Method Summary collapse

Instance Method Details

#decode(string, tuple = nil, field = nil) ⇒ Object



20
21
22
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/text_decoder.rb', line 20

def decode(string, tuple=nil, field=nil)
	::JSON.parse(string, quirks_mode: true)
end