Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/threetaps_client/core_ext/string.rb
Instance Method Summary collapse
-
#decode_json ⇒ Object
Parses a JSON string (JavaScript Object Notation) into a hash.
Instance Method Details
#decode_json ⇒ Object
Parses a JSON string (JavaScript Object Notation) into a hash.
"{\"success\":true,\"anchor\":640503449}".decode_json
# => { "success": true, "anchor":640503449 }
6 7 8 |
# File 'lib/threetaps_client/core_ext/string.rb', line 6 def decode_json JSON(self) end |