This looks like Javascript Object Notation (JSON). You can install the JSON gem for Ruby:
gem install json
You would require the gem in your code like this:
require 'rubygems'
require 'json'
Then you can parse your JSON string like this:
JSON.parse(string)
There are also other implementations of JSON for Ruby: