[vlc-devel] [PATCH] http lua: do not include useless characters in json responses

Rob Jonson rob at hobbyistsoftware.com
Sun Mar 4 18:13:31 CET 2012


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

cheers,

Rob


-- 





Hobbyist Software is a trading name of Hobbyist Software Limited.
Registered office Flat 4 Eastmead Court, Bristol BS9 1HP. Registered
in England. Company no:7876492



More information about the vlc-devel mailing list