Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-10-25 | toJSON: report error position for fancier output | Shay Bergmann | |
Given flake: ```nix { description = "nix json error provenance"; inputs = {}; outputs = { self }: { jsonFunction = _: "function"; json = builtins.toJSON (_: "function"); }; } ``` - Before: ```console ❯ nix eval --json .#jsonFunction error: cannot convert a function to JSON ``` - After: ```console ❯ nix eval --json .#jsonFunction error: cannot convert a function to JSON at /nix/store/b7imf1c2j4jnkg3ys7fsfbj02s5j0i4f-source/testflake/flake.nix:4:5: 3| outputs = { self }: { 4| jsonFunction = _: "function"; | ^ 5| json = builtins.toJSON (_: "function"); ``` | |||
2016-08-29 | nix path-info: Add --json flag | Eelco Dolstra | |
Also, factor out JSON generation from value-to-json.{cc,hh}, and support producing indented JSON. | |||
2016-02-19 | JSONObject: Support floats and booleans | Eelco Dolstra | |
2014-09-30 | Support control characters in JSON output | Eelco Dolstra | |
2013-11-19 | Refactor JSON output | Eelco Dolstra | |
2013-11-19 | Add a toJSON primop | Eelco Dolstra | |