Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/threetaps_client/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#decode_jsonObject

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