2013-11-19 01:03:11 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "nixexpr.hh"
|
|
|
|
#include "eval.hh"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
2016-08-26 19:55:55 +03:00
|
|
|
class JSONPlaceholder;
|
2013-11-19 01:33:06 +02:00
|
|
|
|
2016-08-26 19:55:55 +03:00
|
|
|
void printValueAsJSON(EvalState & state, bool strict,
|
2022-03-04 20:31:59 +02:00
|
|
|
Value & v, const PosIdx pos, JSONPlaceholder & out, PathSet & context);
|
2013-11-19 01:33:06 +02:00
|
|
|
|
2016-08-26 19:55:55 +03:00
|
|
|
void printValueAsJSON(EvalState & state, bool strict,
|
2022-03-04 20:31:59 +02:00
|
|
|
Value & v, const PosIdx pos, std::ostream & str, PathSet & context);
|
2013-11-19 01:33:06 +02:00
|
|
|
|
2013-11-19 01:03:11 +02:00
|
|
|
}
|