A program that converts JSON files to KDL
Go to file
Agatha Lovelace dd939ae1f6
Initial commit
2023-03-05 22:36:30 +01:00
examples Initial commit 2023-03-05 22:36:30 +01:00
src Initial commit 2023-03-05 22:36:30 +01:00
.gitignore Initial commit 2023-03-05 22:36:30 +01:00
Cargo.lock Initial commit 2023-03-05 22:36:30 +01:00
Cargo.toml Initial commit 2023-03-05 22:36:30 +01:00
LICENSE.md Initial commit 2023-03-05 22:36:30 +01:00
README.md Initial commit 2023-03-05 22:36:30 +01:00

README.md

json2kdl

json2kdl is a program that generates KDL files from JSON

A terminal screenshot of me running cat to show the contents of an example json file, then running json2kdl on it and showing the kdl output in a new file

Intended Use

json2kdl was made specifically for Nixpkgs Issue #198655, which means, these features are currently out of scope:

  • Parsing arbitrary JSON
    Currently, the input file structure must follow a specific schema:

    • Nodes can be defined as fields of the root JSON object ({})
    • Each node can have these optional fields:

    See examples/example.json

  • Comments (As JSON does not support them)

  • Type Annotations

  • Types that KDL has but JSON does not and vice versa