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-1.0.0.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file llsd2json-1.0.0.tar.gz
.
File metadata
- Download URL: llsd2json-1.0.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfa0479538c5ddbd9ded8be15adb6fd1829303b44848595bdfeb317fed946abd |
|
MD5 | 4bcdd6b78cd48a07963ec2023a1b1ca6 |
|
BLAKE2b-256 | 72916c6b73bccd33b170175d92d46315d8014ad67e034b6f831c4b9ca4bcec4e |
File details
Details for the file llsd2json-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: llsd2json-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee79e31076018fa71d6790ce02dd00cbe3268eecb58c99932f8ab9f1bc5ae760 |
|
MD5 | b7c01b6a01a3e7b5fdefa0fe96f18d71 |
|
BLAKE2b-256 | b501f170bac76f8fe60abc0ff48af8f8efe05883e68fb5fefccf9b0e5e37a233 |