2013-11-18 23:03:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "nixexpr.hh"
|
|
|
|
#include "eval.hh"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
2016-08-26 16:55:55 +00:00
|
|
|
class JSONPlaceholder;
|
2013-11-18 23:33:06 +00:00
|
|
|
|
2016-08-26 16:55:55 +00:00
|
|
|
void printValueAsJSON(EvalState & state, bool strict,
|
2021-10-25 21:13:35 +00:00
|
|
|
Value & v, const Pos & pos, JSONPlaceholder & out, PathSet & context);
|
2013-11-18 23:33:06 +00:00
|
|
|
|
2016-08-26 16:55:55 +00:00
|
|
|
void printValueAsJSON(EvalState & state, bool strict,
|
2021-10-25 21:13:35 +00:00
|
|
|
Value & v, const Pos & pos, std::ostream & str, PathSet & context);
|
2013-11-18 23:33:06 +00:00
|
|
|
|
2013-11-18 23:03:11 +00:00
|
|
|
}
|