Class: Gush::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/gush/json.rb

Class Method Summary collapse

Class Method Details

.decode(data, options = {}) ⇒ Object



7
8
9
# File 'lib/gush/json.rb', line 7

def self.decode(data, options = {})
  MultiJson.load(data, options)
end

.encode(data) ⇒ Object



3
4
5
# File 'lib/gush/json.rb', line 3

def self.encode(data)
  MultiJson.dump(data)
end