Sha256: d6b002a4cb4a94ba11bef82ac0c75a907615a1608ccdd35e382fd160ea02290c

Contents?: true

Size: 356 Bytes

Versions: 28

Compression:

Stored size: 356 Bytes

Contents

require "multi_json"
require_relative "json_document"

module Lutaml
  module Model
    module JsonAdapter
      class MultiJsonAdapter < JsonDocument
        def self.parse(json)
          data = MultiJson.load(json)
          new(data)
        end

        def to_json(*args)
          MultiJson.dump(to_h, *args)
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lutaml-model-0.3.9 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.8 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.7 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.6 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.5 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.4 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.3 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.2 lib/lutaml/model/json_adapter/multi_json_adapter.rb