Sha256: e2325745b077717ef3f34690b3b57c35428171145a9341fbee1c718115774518

Contents?: true

Size: 222 Bytes

Versions: 31

Compression:

Stored size: 222 Bytes

Contents

# -*- ruby -*-
# frozen_string_literal: true

require 'json'

module PG
	module TextEncoder
		class JSON < SimpleEncoder
			def encode(value)
				::JSON.generate(value, quirks_mode: true)
			end
		end
	end
end # module PG

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
pg-1.5.7-x86-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.7-x64-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.7-x64-mingw-ucrt lib/pg/text_encoder/json.rb
pg-1.5.7 lib/pg/text_encoder/json.rb
pg-1.5.6-x64-mingw-ucrt lib/pg/text_encoder/json.rb
pg-1.5.6-x64-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.6-x86-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.6 lib/pg/text_encoder/json.rb
pg-1.5.5-x86-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.5-x64-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.5-x64-mingw-ucrt lib/pg/text_encoder/json.rb
pg-1.5.5 lib/pg/text_encoder/json.rb
pg-1.5.4-x86-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.4-x64-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.4-x64-mingw-ucrt lib/pg/text_encoder/json.rb
pg-1.5.4 lib/pg/text_encoder/json.rb
pg-1.5.3-x64-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.3-x64-mingw-ucrt lib/pg/text_encoder/json.rb
pg-1.5.3-x86-mingw32 lib/pg/text_encoder/json.rb
pg-1.5.3 lib/pg/text_encoder/json.rb