diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-04 13:34:15 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-04 13:34:15 +0200 |
commit | beaf3e90aff14664b98f2c7ab7387c9fa4354fd1 (patch) | |
tree | cc1bab6524c7e616697efbae788e4b997a3213c4 /src/libexpr/json-to-value.hh | |
parent | e82951fe23daa961ef18b0c5cc9ba1f5d8906186 (diff) |
Add builtin function ‘fromJSON’
Fixes #294.
Diffstat (limited to 'src/libexpr/json-to-value.hh')
-rw-r--r-- | src/libexpr/json-to-value.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libexpr/json-to-value.hh b/src/libexpr/json-to-value.hh new file mode 100644 index 000000000..33f35b16c --- /dev/null +++ b/src/libexpr/json-to-value.hh @@ -0,0 +1,13 @@ +#pragma once + +#include "eval.hh" + +#include <string> + +namespace nix { + +MakeError(JSONParseError, EvalError) + +void parseJSON(EvalState & state, const string & s, Value & v); + +} |