Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/weese/deserialize.rb
Overview
Extension to String for deserializing JSON
Instance Method Summary collapse
-
#deserialize ⇒ Hash
Convert this String into a JSON Hash.
Instance Method Details
#deserialize ⇒ Hash
Convert this String into a JSON Hash
14 15 16 17 18 |
# File 'lib/weese/deserialize.rb', line 14 def deserialize JSON.parse(self) rescue JSON::ParserError => e raise WeeseError, e.to_s end |