[vlc-devel] [PATCH] http lua: do not include useless characters in json responses
Tristan Lanfrey
tristan.lanfrey at gmail.com
Sun Mar 4 19:44:20 CET 2012
On Sun, Mar 4, 2012 at 5:13 PM, Rob Jonson <rob at hobbyistsoftware.com> wrote:
> On 4 March 2012 01:36, Tristan Lanfrey <tristan.lanfrey at gmail.com> wrote:
>> Removing newline and space characters makes responses lighter
>> (especially when requesting a playlist with meta data)
>
> removing spaces and newlines also makes the responses much harder to
> read for humans.
> From json.org :
> 'JSON (JavaScript Object Notation) is a lightweight data-interchange
> format. It is easy for humans to read and write.'
>
> personally I'd rather accept the small extra weight for the advantage
> of being able to read the output when debugging / developing
>
> if you are going to go this way, then let's at least make it not strip
> formatting when the params have &debug in them
>
Attached.
--
Tristan LANFREY
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-http-lua-do-not-include-useless-characters-in-json-r.patch
Type: text/x-patch
Size: 866 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120304/0d7c82bc/attachment.bin>
More information about the vlc-devel
mailing list