lib/tjson/object.rb in tjson-0.4.0 vs lib/tjson/object.rb in tjson-0.5.0

- old
+ new

@@ -9,9 +9,9 @@ raise ParseError, "invalid tag: #{tagged_name.inspect}" unless result raise DuplicateNameError, "duplicate member name: #{result[:name].inspect}" if key?(result[:name]) type = TJSON::DataType.parse(result[:tag]) - super(result[:name], type.convert(value)) + super(result[:name], type.decode(value)) end end end