Class: Lutaml::Json::Adapter::YeptrisAdapter
- Inherits:
-
StandardAdapter
- Object
- KeyValue::Document
- Document
- StandardAdapter
- Lutaml::Json::Adapter::YeptrisAdapter
- Defined in:
- lib/lutaml/json/adapter/yeptris_adapter.rb
Overview
JSON parsing over the yeptris engine: Yeptris::JSON.load targets exact JSON.parse semantics (spec-pinned upstream), with a fused native materializer when the loaded libyeptris build carries it. Generation stays on the json gem (the yeptris JSON surface is load-only), so everything else inherits from the standard adapter.
Constant Summary
Constants inherited from StandardAdapter
StandardAdapter::FORMAT_SYMBOL
Instance Attribute Summary
Attributes inherited from KeyValue::Document
Class Method Summary collapse
Methods inherited from StandardAdapter
#accepts_generator_state?, #to_json
Methods inherited from KeyValue::Document
#[], #[]=, #initialize, #key?, #to_h
Constructor Details
This class inherits a constructor from Lutaml::KeyValue::Document
Class Method Details
.parse(json, _options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/lutaml/json/adapter/yeptris_adapter.rb', line 14 def self.parse(json, = {}) require "yeptris" ::Yeptris::JSON.load(json) end |