Class: Restify::Processors::JSON

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

Overview

Decode JSON responses.

Instance Method Summary collapse

Instance Method Details

#formatObject



11
12
13
# File 'lib/restify/parser/json.rb', line 11

def format
  :json
end

#parse(str) ⇒ Object



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

def parse(str)
  MultiJSON.load(str)
end