ruby on rails - Change JSON formatting -
the following 2 pages provide same json object. possible have facebook style json formatting rails application??
desired formatting:
https://graph.facebook.com/19292868552
my application formatting:
http://sframework.heroku.com/api/graphs
thanks
ruby json library has pretty_generate function.
require 'json' puts json.pretty_generate(fbjson)
Comments
Post a Comment