When I try to return JSON in the format shown above, my JSON looks like this
result = JSON.parse(data)
p result.to_json
#json from .to_json
\"is_claimed\": true,
\"rating\": 3.5,
\"mobile_url\": \"http: //m.yelp.com/biz/rudys-barbershop-seattle\",
...
When I use "p result" instead (without .to_json), I get the below:
"is_claimed"=>true,
"rating"=>3.5,
"mobile_url"=>"http://m.yelp.com/biz/rudys-barbershop-seattle",
....
The first has a '\' character and the second uses a hash rocket. How do I return JSON in a normal format?