Convert raw lines to a JSON object.
Project description
Overview
This is a simple tool to convert whitespace-separated items on separate lines to a JSON object.
Example
Just pipe the data in:
$ printf "key1 value1\nkey2 value2\nkey3 value3 value33" | jlto { "key1": "value1", "key2": "value2", "key3": "value3 value33" }
Features
Will ignore newlines.
Options
Can be told to skip hash-commented lines.
Can be told to automatically add an empty string for a value if there is only one part on the line (causes error by default).
Can be told to allow duplicate keys (causes error by default).
Can be told to flip the keys and values (the values will be the keys).
See command-line help for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for json_lines_to_object-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2b8b953fc287f9af566032accfde69c3054ac57ec9f3421978eb710076c21bd |
|
MD5 | 7ef82cbb2b287745f9541233b5233734 |
|
BLAKE2b-256 | dc5134f6c4800c1b7ae72a3b19410c785828c0fe0ee68594c0bccb93410eccb6 |