Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
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
11namespace nix {
12
13nlohmann::json printValueAsJSON(
14 EvalState & state, bool strict, Value & v, const PosIdx pos, NixStringContext & context, bool copyToStore = true);
15
16void 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
25MakeError(JSONSerializationError, Error);
26
27} // namespace nix
Definition error.hh:310
Definition eval.hh:420
Definition pos-idx.hh:10
std::set< NixStringContextElem > NixStringContext
Definition context.hh:103
Definition value.hh:1166