Sha256: ae4cc43223a161c97b55506a645d5b6634d0ba23a688a332c3338a92e32e1f18
Contents?: true
Size: 677 Bytes
Versions: 20
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true class Serega module SeregaJSON # # JSON dump adapter for ::JSON # class JSONDump # # Dumps data to JSON string # # @param data [Object] Anything # # @return [String] Data serialized to JSON # def self.call(data) ::JSON.dump(data) end end # # JSON parse adapter for ::JSON # class JSONLoad # # Loads object from JSON string # # @param json_string [String] JSON String # # @return [Object] Deserialized data # def self.call(json_string) ::JSON.parse(json_string) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems