Sha256: 382a372397d11a4f4c278b1fe3a981c3ce0325af1a33a932ee5cd2d4e4fdf514

Contents?: true

Size: 245 Bytes

Versions: 5

Compression:

Stored size: 245 Bytes

Contents

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

require 'json'

module YSQL
	module TextDecoder
		class JSON < SimpleDecoder
			def decode(string, tuple=nil, field=nil)
				::JSON.parse(string, quirks_mode: true)
			end
		end
	end
end # module PG

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yugabytedb-ysql-0.7 lib/ysql/text_decoder/json.rb
yugabytedb-ysql-0.6 lib/ysql/text_decoder/json.rb
yugabytedb-ysql-0.5 lib/ysql/text_decoder/json.rb
yugabytedb-ysql-0.4 lib/ysql/text_decoder/json.rb
yugabytedb-ysql-0.3 lib/pg/text_decoder/json.rb