Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
value-to-json.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/expr/nixexpr.hh
"
5
#include "
nix/expr/eval.hh
"
6
7
#include <string>
8
#include <map>
9
#include <nlohmann/json_fwd.hpp>
10
11
namespace
nix {
12
13
nlohmann::json printValueAsJSON(
14
EvalState
& state,
bool
strict,
Value
& v,
const
PosIdx
pos,
NixStringContext
& context,
bool
copyToStore =
true
);
15
16
void
printValueAsJSON(
17
EvalState
& state,
18
bool
strict,
19
Value
& v,
20
const
PosIdx
pos,
21
std::ostream & str,
22
NixStringContext
& context,
23
bool
copyToStore =
true
);
24
25
MakeError(JSONSerializationError,
Error
);
26
27
}
// namespace nix
nix::Error
Definition
error.hh:310
nix::EvalState
Definition
eval.hh:420
nix::PosIdx
Definition
pos-idx.hh:10
eval.hh
nix::NixStringContext
std::set< NixStringContextElem > NixStringContext
Definition
context.hh:103
nixexpr.hh
nix::Value
Definition
value.hh:1166
libexpr
include
nix
expr
value-to-json.hh
Generated by
1.18.0