json2sg: Lossy conversion from JSON to Sugar

[ configuration, library, program, text ] [ Propose Tags ] [ Report a vulnerability ]

Sugar is an alternative to: JSON, YAML, TOML, et cetera. Please see the README on GitHub at https://github.com/jxv/sugar#readme


[Skip to Readme]

library json2sg:json2sg-lib

Modules

  • Sugar
    • Json
      • Sugar.Json.Convert

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1
Change log CHANGELOG.md
Dependencies aeson, base (>=4.7 && <5), bytestring (>=0.11 && <0.12), json2sg, sugar (==0.0.1), sugar-json (==0.0.1.1), text [details]
License LicenseRef-OtherLicense
Author Joe Vargas
Maintainer Joe Vargas
Category Text, Configuration
Home page https://github.com/jxv/sugar#readme
Bug tracker https://github.com/jxv/sugar/issues
Source repo head: git clone https://github.com/jxv/sugar
Uploaded by jxv at 2022-07-29T01:20:45Z
Distributions
Executables json2sg
Downloads 118 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2022-07-29 [all 2 reports]

Readme for json2sg-0.0.1

[back to package description]

json2sg

Lossy conversion from JSON to Sugar

Usage

Pass JSON through stdin and export out Sugar through stdout

json2sg < input.json > output.sg 

Format comparsion

JSON

{ "id": "62e32f511b845f8b3e1f577a", "index": 0, "quantity": 555.55, "guid": null, "isActive": false, "isExpired": true, "about": "Aliquip dolor adipisicing excepteur exercitation labore cupidatat non.", "tags": [ "ex", "proident", "cupidatat" ], "nested": ["hello", ["world",	["!"]]], "assoc": [ { "id": 0, "name": "duis" }, { "id": 1, "name": "nisi" }, { "id": 2, "name": "minim" } ] } 

Sugar

about "Aliquip dolor adipisicing excepteur exercitation labore cupidatat non." assoc [ { id 0 name duis } { id 1 name nisi } { id 2 name minim } ] guid () id 62e32f511b845f8b3e1f577a index 0 isActive #f isExpired #t nested [hello (world [!])] quantity 555.55 tags [ex proident cupidatat]