help-recutils
[Top][All Lists]
Advanced

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

Re: [help-recutils] json output


From: Sven Wick
Subject: Re: [help-recutils] json output
Date: Sun, 08 Jun 2014 17:03:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

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]