Class: PG::TextEncoder::JSON

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

Instance Method Summary collapse

Instance Method Details

#encode(value) ⇒ Object



34
35
36
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/text_encoder.rb', line 34

def encode(value)
	::JSON.generate(value, quirks_mode: true)
end