class JSON::Ext::Parser
这是作为 C 扩展实现的 JSON 解析器。它可以通过在 JSON 中使用 parser= 方法进行配置。
JSON.parser = JSON::Ext::Parser
在 JSON 中设置 parser= 方法进行配置。
Constants
- Config
Public Class Methods
Source
# File ext/json/lib/json/ext.rb, line 17 def initialize(source, opts = nil) @source = source @config = Config.new(opts) end
Source
# File ext/json/lib/json/ext.rb, line 11 def parse(...) new(...).parse end
也别名为:parse