We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0b47b0 commit 35db859Copy full SHA for 35db859
1 file changed
lib/json/truffle_ruby/generator.rb
@@ -521,7 +521,7 @@ def json_transform(state)
521
end
522
523
delim = ",#{state.object_nl}"
524
- result = +"{#{state.object_nl}"
+ result = "{#{state.object_nl}"
525
first = true
526
key_type = nil
527
indent = !state.object_nl.empty?
@@ -558,7 +558,7 @@ def json_transform(state)
558
raise TypeError, "#{key.class}#to_s returns an instance of #{key_str.class}, expected a String"
559
560
561
- result = +"#{result}#{key_json}#{state.space_before}:#{state.space}"
+ result = "#{result}#{key_json}#{state.space_before}:#{state.space}"
562
if state.strict? && !Generator.native_type?(value)
563
if state.as_json
564
value = state.as_json.call(value, false)
0 commit comments