[weboob] RFC: a multi-line json formatter

Flo 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:
> http://git.symlink.me/?p=laurentb/weboob.git;a=commitdiff;h=132d131f87ffc7b1198d2f14f38fd1cb8cd9417c;hp=297132e200f921a9599508e7ad8ba2612e7d5212
> 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 mailing list