Possible to get output to pretty print? #10

Closed
vinnyglennon opened this Issue Jun 25, 2013 · 4 comments

Projects

None yet

3 participants

@vinnyglennon

Via ?pretty=true or on by default

Makes it more readable and if gzipped, does not increase size greatly.
Source:
http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pretty-print-gzip

@cantino
Member
cantino commented Aug 9, 2013

That's a good idea. The generation could use JSON.pretty_generate instead of render :json. Do you want to take a crack at it?

@ahuth ahuth referenced this issue Jun 22, 2014
Merged

Pretty print #31

@ixti
ixti commented Oct 16, 2014

This should be closed as it was resolved.

@cantino cantino closed this Oct 16, 2014
@cantino
Member
cantino commented Oct 16, 2014

Agreed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment