lib/asir/coder/json.rb in asir-1.0.7 vs lib/asir/coder/json.rb in asir-1.0.8

- old
+ new

@@ -11,12 +11,11 @@ def _encode obj [ obj ].to_json end def _decode obj - parser = ::JSON.parser.new(obj) - ary = parser.parse - ary.first + ::JSON.parser.new(obj). + parse.first end end # !SLIDE END end end