2013-11-19 00:03:11 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2020-05-19 15:54:39 +01:00
|
|
|
|
2020-05-27 21:56:34 +01:00
|
|
|
#include "libexpr/eval.hh"
|
|
|
|
#include "libexpr/nixexpr.hh"
|
2013-11-19 00:03:11 +01:00
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
2016-08-26 18:55:55 +02:00
|
|
|
class JSONPlaceholder;
|
2013-11-19 00:33:06 +01:00
|
|
|
|
2016-08-26 18:55:55 +02:00
|
|
|
void printValueAsJSON(EvalState& state, bool strict, Value& v,
|
|
|
|
JSONPlaceholder& out, PathSet& context);
|
2013-11-19 00:33:06 +01:00
|
|
|
|
2016-08-26 18:55:55 +02:00
|
|
|
void printValueAsJSON(EvalState& state, bool strict, Value& v,
|
|
|
|
std::ostream& str, PathSet& context);
|
2013-11-19 00:33:06 +01:00
|
|
|
|
2013-11-19 00:03:11 +01:00
|
|
|
} // namespace nix
|