Class: Lutaml::Json::Adapter::YeptrisAdapter

Inherits:
StandardAdapter show all
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

#attributes, #register

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



15
16
17
# File 'lib/lutaml/json/adapter/yeptris_adapter.rb', line 15

def self.parse(json, _options = {})
  ::Yeptris::JSON.load(json)
end