about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/value-to-json.hh
blob: 294d776045600d957ddb203ab7153639347ceaec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <map>
#include <string>

#include "libexpr/eval.hh"
#include "libexpr/nixexpr.hh"

namespace nix {

class JSONPlaceholder;

void printValueAsJSON(EvalState& state, bool strict, Value& v,
                      JSONPlaceholder& out, PathSet& context);

void printValueAsJSON(EvalState& state, bool strict, Value& v,
                      std::ostream& str, PathSet& context);

}  // namespace nix