Sha256: d6b002a4cb4a94ba11bef82ac0c75a907615a1608ccdd35e382fd160ea02290c

Contents?: true

Size: 356 Bytes

Versions: 27

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

27 entries across 27 versions & 1 rubygems

Version Path
lutaml-model-0.3.28 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.27 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.26 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.25 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.24 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.23 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.22 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.21 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.20 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.19 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.18 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.17 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.16 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.15 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.14 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.13 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.12 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.11 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.10 lib/lutaml/model/json_adapter/multi_json_adapter.rb
lutaml-model-0.3.9 lib/lutaml/model/json_adapter/multi_json_adapter.rb