Sha256: b638abc29b164819213e9814ad2e9206a47c321d74e3508c5feccda5daf0b247

Contents?: true

Size: 353 Bytes

Versions: 19

Compression:

Stored size: 353 Bytes

Contents

require "json"
require_relative "json_document"

module Lutaml
  module Model
    module JsonAdapter
      class StandardJsonAdapter < JsonDocument
        def self.parse(json)
          JSON.parse(json, create_additions: false)
        end

        def to_json(*args)
          JSON.generate(@attributes, *args)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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