instance method
pairparse
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v3.0.20Available in: v2.3.18 v3.0.20
Signature
pairparse(ts)
Parses a “member” in the sense of RFC 4627. Returns the parsed values and any trailing tokens.
Parameters
-
tsreq
Source
# File activesupport/lib/active_support/json/backends/okjson.rb, line 124
def pairparse(ts)
(typ, _, k), ts = ts[0], ts[1..-1]
if typ != :str
raise Error, "unexpected #{k.inspect}"
end
ts = eat(':', ts)
v, ts = valparse(ts)
[k, v, ts]
end
Defined in activesupport/lib/active_support/json/backends/okjson.rb line 124
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::OkJson