# File lib/multi_json/vendor/okjson.rb, line 44 def decode(s) ts = lex(s) v, ts = textparse(ts) if ts.length > 0 raise Error, 'trailing garbage' end v end