nix-super/src/libexpr/value-to-json.hh

19 lines
438 B
C++
Raw Normal View History

2013-11-19 01:03:11 +02:00
#pragma once
#include "nixexpr.hh"
#include "eval.hh"
#include <string>
#include <map>
#include <nlohmann/json_fwd.hpp>
2013-11-19 01:03:11 +02:00
namespace nix {
nlohmann::json printValueAsJSON(EvalState & state, bool strict,
Value & v, const PosIdx pos, PathSet & context, bool copyToStore = true);
2013-11-19 01:33:06 +02:00
void printValueAsJSON(EvalState & state, bool strict,
Value & v, const PosIdx pos, std::ostream & str, PathSet & context, bool copyToStore = true);
2013-11-19 01:33:06 +02:00
2013-11-19 01:03:11 +02:00
}