Skip to content

Compress JSON from API #91

Closed
rodnaph opened this Issue Mar 14, 2012 · 1 comment

2 participants

@rodnaph
Owner
rodnaph commented Mar 14, 2012

(As suggested by Nathan via email)

Removing whitespace from JSON API could cut down on size of data sent to mobile devices. Will need to do some checks to see what kind of savings could be made.

@nperrier
Collaborator

Not much if you are just querying or getting info for one album/artist/etc...but LOTS, if your database is big and you're setting limit=-1!

I see the JSON data is interpolated from the .jamon templates. Maybe there is a method/setting you can invoke/set that does this?

@rodnaph rodnaph added a commit that closed this issue Mar 31, 2012
@rodnaph Added JsonWriter object to strip whitespace as it's written to the st…
…ream to reduce size of JSON output, achieves about 40% (fixes #91)
651f57e
@rodnaph rodnaph closed this in 651f57e Mar 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.