mirror of
https://github.com/jj-vcs/jj.git
synced 2025-12-23 06:01:01 +00:00
This was discussed in #3219 and #3262, and apparently, people don't agree whether we should implement machine-readable formatting by using templater. However, there are recurring requests about JSON output, and "jj api" is still vaporware. So I think it's good to add some support for JSON output. I'm not going to add syntax to build custom JSON object/list for now. Instead, property types such as Commit will implement fixed serialization output. The user might have to write ad-hoc JSON constructs to concatenate the default JSON output and their custom JSON fields. We'll need a documentation about which types are serializable. I think this can be added later when more types get serialization support. |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| testing | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| docs | ||
| LICENSE | ||