Class: OSON::Parser
- Inherits:
-
Object
- Object
- OSON::Parser
- Defined in:
- lib/oson.rb
Class Method Summary collapse
-
.parse(json) ⇒ Object
Convert json string to object.
Class Method Details
.parse(json) ⇒ Object
Convert json string to object
9 10 11 12 |
# File 'lib/oson.rb', line 9 def self.parse(json) obj = OpenStruct.new JSON.parse(json) obj end |