Class: Expressr::JSON

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

Class Method Summary collapse

Class Method Details

.decode(string) ⇒ Object



6
7
8
# File 'lib/expressr/json.rb', line 6

def decode(string)
  ::JSON.load(string)
end

.encode(value) ⇒ Object



10
11
12
# File 'lib/expressr/json.rb', line 10

def encode(value)
  ::JSON.dump(value)
end