CLIs to convert between LLSD and JSON
Project description
llsd2json
CLIs to convert between Linden Lab Structured Data (LLSD) and JSON.
Example:
$ echo '<llsd><map><key>name</key><string>Ruth</string></map></llsd>' | llsd2json | jq -r .name
Ruth
Install and use
Install llsd2json with pip or pipx
pipx install llsd2json
llsd2json
usage: llsd2json [-h] [--format {auto,xml,binary,notation}] [input]
Convert LLSD to JSON
positional arguments:
input LLSD string (default: stdin)
options:
-h, --help show this help message and exit
--format {auto,xml,binary,notation}, -f {auto,xml,binary,notation}
LLSD format
json2llsd
usage: json2llsd [-h] [--format {xml,binary,notation}] [input]
Convert JSON to LLSD
positional arguments:
input JSON string (default: stdin)
options:
-h, --help show this help message and exit
--format {xml,binary,notation}, -f {xml,binary,notation}
LLSD format
Notes
Conversion between LLSD and JSON is not perfectly bi-directional. JSON does not
support several LLSD data types such as date
, binary
, uri
, and has no
distinct number types.
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
llsd2json-0.1.0.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for llsd2json-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c60860b1f20ad86acb1b35bec177b860a025fc3f7d2665e6a11ee4b98d0b11b |
|
MD5 | 81e6e18b2904f6d396970c82a0995912 |
|
BLAKE2b-256 | 596dc7c23c1b86c7d2913d98ce1e3220ea7825b6bf942808c6318285677342ca |