2013-11-18 23:03:11 +00:00
|
|
|
#pragma once
|
2023-04-01 03:18:41 +00:00
|
|
|
///@file
|
2013-11-18 23:03:11 +00:00
|
|
|
|
|
|
|
#include "nixexpr.hh"
|
|
|
|
#include "eval.hh"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
2022-11-16 15:49:49 +00:00
|
|
|
#include <nlohmann/json_fwd.hpp>
|
2013-11-18 23:03:11 +00:00
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
2022-11-16 15:49:49 +00:00
|
|
|
nlohmann::json printValueAsJSON(EvalState & state, bool strict,
|
|
|
|
Value & v, const PosIdx pos, PathSet & context, bool copyToStore = true);
|
2013-11-18 23:33:06 +00:00
|
|
|
|
2016-08-26 16:55:55 +00:00
|
|
|
void printValueAsJSON(EvalState & state, bool strict,
|
2022-08-16 10:23:37 +00:00
|
|
|
Value & v, const PosIdx pos, std::ostream & str, PathSet & context, bool copyToStore = true);
|
2013-11-18 23:33:06 +00:00
|
|
|
|
2013-11-18 23:03:11 +00:00
|
|
|
}
|