2013-11-19 01:03:11 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "nixexpr.hh"
|
|
|
|
#include "eval.hh"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
2022-11-16 17:49:49 +02:00
|
|
|
#include <nlohmann/json_fwd.hpp>
|
2013-11-19 01:03:11 +02:00
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
2022-11-16 17:49:49 +02:00
|
|
|
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
|
|
|
|
2016-08-26 19:55:55 +03:00
|
|
|
void printValueAsJSON(EvalState & state, bool strict,
|
2022-08-16 13:23:37 +03:00
|
|
|
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
|
|
|
}
|