about summary refs log blame commit diff
path: root/third_party/nix/src/libexpr/value-to-json.hh
blob: 6ec36c829d37d0ee742ec6200bbf0b763206b30a (plain) (tree)
1
2
3
4
5
6
7
8
9
10

            
              
                 
 

                     


               
                      
 

                                                              
 

                                                              
 
                   
#pragma once

#include <map>
#include <string>

#include "eval.hh"
#include "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