From 77c13cdf566ffedc70d8860571afae8a6d43b552 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 19 Nov 2013 00:03:11 +0100 Subject: Add a toJSON primop --- src/libexpr/value-to-json.hh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/libexpr/value-to-json.hh (limited to 'src/libexpr/value-to-json.hh') diff --git a/src/libexpr/value-to-json.hh b/src/libexpr/value-to-json.hh new file mode 100644 index 000000000000..5f36a76d8a7e --- /dev/null +++ b/src/libexpr/value-to-json.hh @@ -0,0 +1,14 @@ +#pragma once + +#include "nixexpr.hh" +#include "eval.hh" + +#include +#include + +namespace nix { + +void printValueAsJSON(EvalState & state, bool strict, + Value & v, std::ostream & out, PathSet & context); + +} -- cgit 1.4.1