help-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-recutils] json output


From: Sebastian Fischmeister
Subject: Re: [help-recutils] json output
Date: Sun, 8 Jun 2014 16:27:52 -0400
User-agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu)

Thanks a lot! The rec2json works well.

It would be nice to get this integrated into the mail recutils line
instead of having that in a separate forked repository.

  Sebastian

Sven Wick <address@hidden> writes:

> Hi Sebastian,
>
> as far as I know, recsel currently has no direct support for json output.
> There is a clone of the git repo which has a "rec2json" util
> but I haven't tested it yet.
>
> https://github.com/sidthekidder/recutils/blob/master/utils/rec2json.c
>
> For a quick workaround you can use a python one-liner:
>
> rec2csv data.rec | python -c 'import csv,json,sys; 
> print(json.dumps(list(csv.DictReader(sys.stdin)), indent=4))'
>
>
> On 06/08/2014 03:48 PM, Sebastian Fischmeister wrote:
>> Hello,
>>
>> Is it possible to get json formatted output from recsel? Does anyone
>> know a quick workaround for this?
>>
>> Thanks,
>>    Sebastian
>>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]