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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -