From beaf3e90aff14664b98f2c7ab7387c9fa4354fd1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Jul 2014 13:34:15 +0200 Subject: Add builtin function ‘fromJSON’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #294. --- src/libexpr/json-to-value.hh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/libexpr/json-to-value.hh (limited to 'src/libexpr/json-to-value.hh') diff --git a/src/libexpr/json-to-value.hh b/src/libexpr/json-to-value.hh new file mode 100644 index 000000000000..33f35b16ce89 --- /dev/null +++ b/src/libexpr/json-to-value.hh @@ -0,0 +1,13 @@ +#pragma once + +#include "eval.hh" + +#include + +namespace nix { + +MakeError(JSONParseError, EvalError) + +void parseJSON(EvalState & state, const string & s, Value & v); + +} -- cgit 1.4.1