mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
c0a7b84748
Also, factor out JSON generation from value-to-json.{cc,hh}, and support producing indented JSON.
19 lines
356 B
C++
19 lines
356 B
C++
#pragma once
|
|
|
|
#include "nixexpr.hh"
|
|
#include "eval.hh"
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
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);
|
|
|
|
}
|