module Spring::OkJson

def decode(s)

will be UTF-8.
String values in the resulting structure

it first.
a string in some other encoding, convert
String s must be valid UTF-8. If you have
returns the corresponding ruby value.
Decodes a json document in string s and
def decode(s)
  ts = lex(s)
  v, ts = textparse(ts)
  if ts.length > 0
    raise Error, 'trailing garbage'
  end
  v
end