[weboob] RFC: a multi-line json formatter
weboob at flo.fourcot.fr
Wed May 7 09:26:02 CEST 2014
>> Is it possible to imagine an other JSON formatter providing one JSON
>> result structure per line, displaying them as soon as the backend has
>> computed them?
>> Any comment appreciated.
> This is a great idea, and here is my proposal:
> There is one JSON object per line. Of course, you cannot parse it in one
> step, but it allows results to be streamed.
Applied. It can however not work for all commands, since there are
commands waiting to all the results before to give anything to the
formatter (ls command or REPL applications, for example).
I will try to do a "fast path" when the "ls -U" option is set.
More information about the weboob