mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 16:50:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			487 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			487 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <boost/json/value.hpp>
 | |
| 
 | |
| namespace scwx::util::json
 | |
| {
 | |
| 
 | |
| boost::json::value ReadJsonFile(const std::string& path);
 | |
| boost::json::value ReadJsonStream(std::istream& is);
 | |
| boost::json::value ReadJsonString(std::string_view sv);
 | |
| void               WriteJsonFile(const std::string&        path,
 | |
|                                  const boost::json::value& json,
 | |
|                                  bool                      prettyPrint = true);
 | |
| 
 | |
| } // namespace scwx::util::json
 | 
