Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
value-to-json.hh File Reference
#include "nix/expr/nixexpr.hh"
#include "nix/expr/eval.hh"
#include <string>
#include <map>
#include <nlohmann/json_fwd.hpp>

Go to the source code of this file.

Functions

nlohmann::json nix::printValueAsJSON (EvalState &state, bool strict, Value &v, const PosIdx pos, NixStringContext &context, bool copyToStore=true)
void nix::printValueAsJSON (EvalState &state, bool strict, Value &v, const PosIdx pos, std::ostream &str, NixStringContext &context, bool copyToStore=true)
 nix::MakeError (JSONSerializationError, Error)