https://github.com/sentriz/rsl
reserialise: lossy but versatile conversion between data serialisation formats
https://github.com/sentriz/rsl
Last synced: about 1 year ago
JSON representation
reserialise: lossy but versatile conversion between data serialisation formats
- Host: GitHub
- URL: https://github.com/sentriz/rsl
- Owner: sentriz
- License: mit
- Created: 2022-09-14T21:59:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T12:59:35.000Z (about 2 years ago)
- Last Synced: 2025-03-31T16:52:47.591Z (about 1 year ago)
- Language: Go
- Size: 35.2 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
rsl
reserialise: lossy but versatile conversion between data serialisation formats
---
### installation
```
$ go install go.senan.xyz/rsl@latest
```
### usage
##### command line
```
$ rsl
```
##### available formats
- **csv**
- **csv-ph** (csv with generated pseudo-header)
- **tsv**
- **tsv-ph** (tsv with generated pseudo-header)
- **ini**
- **js** (javascript objects, decode only)
- **json**
- **toml**
- **xml** (lossy support for arbitrary objects)
- **xml-std** (lossless but limited)
- **yaml**
### examples
```shell
$ rsl toml csv some-csv.csv
```
```shell
$ cat example.json
[
{
"name": "jim",
"addr": "dublin"
},
{
"name": "miguel",
"addr": "space"
}
]
```
```shell
$ rsl json json
Volvo
Saab
Opel
Audi
```
```shell
$ rsl xml json