./textproc/json2tsv, Convert JSON to TSV

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.2, Package name: json2tsv-1.2, Maintainer: leot

json2tsv reads JSON data from stdin. It outputs each JSON type to a
TAB-Separated Value format per line. The -n flag can be used to show
the indices for array types (by default off).


Master sites:

Filesize: 8.481 KB

Version history: (Expand)


CVS history: (Expand)


   2023-06-16 10:08:47 by Leonardo Taccari | Files touched by this commit (2)
Log message:
json2tsv: Update to 1.1

Changes:
1.1
---
Fixes:
* jaq: fail early if creating a temporary file using mktemp failed.
* micro-optimization for the json.c parser, json2tsv itself is unaffected though.
* Minor code-style and portability improvements.
* Typo fixes.

Features:
* json2tsv and jaq: add a -u option: flush output after printing each value
(unbuffered). This works similar to the sed -u option.
Sometimes it can be useful to force flushing the data directly. For example
for streaming JSON data.
   2022-09-05 22:53:44 by Leonardo Taccari | Files touched by this commit (3)
Log message:
json2tsv: Update to 1.0

Changes:
1.0
---
* add jaq: a convenience wrapper script:
  It wraps json2tsv, sets options for handling JSON data in a lossless manner
  and uses awk as a "query language".
* json2tsv.1: properly escape backslashes, thanks adc!

An example of jaq:

        echo '{"url":"https://codemadness.org/"}' |
                jaq '$1 == ".url" { print $3 }'

I want to also thank all people who gave feedback,
   2022-05-28 20:44:42 by Leonardo Taccari | Files touched by this commit (2)
Log message:
json2tsv: Update to 0.9

Changes:
0.9
===
* Improve read and write error handling in streams.
* Allow octal format for the separator and check the format a bit more strict.
* Fix code that could have side-effects: nodes[--depth].index++
  (This line found a bug in the scc compiler).
* README: optimize the unescape() function.
   2021-12-21 15:49:05 by Leonardo Taccari | Files touched by this commit (2)
Log message:
json2tsv: Update to 0.8

Changes:
0.8
---
- Optimize number parsing for large number datasets
- Add -F and -R options to allow to specify a different field and record
  separator
- Print \n and \t also when using -F/-R options
- Documentation improvements

0.7
---
- Use unlocked I/O by default
- Fix gcc warnings
- Documentation improvements
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles
   2021-01-27 17:52:28 by Leonardo Taccari | Files touched by this commit (3)
Log message:
json2tsv: Update to 0.6

pkgsrc changes:
 - Update MASTER_SITES to use https

Changes:
0.6
---
 - Fix UTF-16 surrogate pair range
 - Also install LICENSE as part of documentation
   2020-02-23 21:44:25 by Leonardo Taccari | Files touched by this commit (2)
Log message:
json2tsv: Update to 0.5

Changes:
0.5
---
 - Minor bug fixes and improvements