Class: OSON::Parser

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

Class Method Summary collapse

Class Method Details

.parse(json) ⇒ Object

Convert json string to object

Parameters:

  • json (String)


9
10
11
12
# File 'lib/oson.rb', line 9

def self.parse(json)
	obj = OpenStruct.new JSON.parse(json)
	obj
end