Sha256: 681c9f652639aabf9cdc346d9906017b49f4f3e71e36448fc54d8b1f08d6d674
Contents?: true
Size: 235 Bytes
Versions: 2
Compression:
Stored size: 235 Bytes
Contents
module Basquiat module Json def self.encode(object) MultiJson.dump(object) end def self.decode(object) MultiJson.load(object, symbolize_keys: true) rescue MultiJson::ParseError {} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
basquiat-1.2.0 | lib/basquiat/support/json.rb |
basquiat-1.1.1 | lib/basquiat/support/json.rb |