Nix 2.26.3
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 "nixexpr.hh"
5#include "eval.hh"
6
7#include <string>
8#include <map>
9#include <nlohmann/json_fwd.hpp>
10
11namespace nix {
12
13nlohmann::json printValueAsJSON(EvalState & state, bool strict,
14 Value & v, const PosIdx pos, NixStringContext & context, bool copyToStore = true);
15
16void printValueAsJSON(EvalState & state, bool strict,
17 Value & v, const PosIdx pos, std::ostream & str, NixStringContext & context, bool copyToStore = true);
18
19
20MakeError(JSONSerializationError, Error);
21
22}
Definition eval.hh:182
Definition pos-idx.hh:9
std::ostream & str
Definition lexer.l:1728
Definition value.hh:167