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