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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -