SIRIUS 7.5.0
Electronic structure library and applications
Macros | Functions
json.hpp File Reference

Interface to nlohmann::json library and helper functions. More...

Go to the source code of this file.

Macros

#define JSON_USE_IMPLICIT_CONVERSIONS   0
 

Functions

nlohmann::json try_parse (std::istream &is)
 Read json dictionary from file or string. More...
 
nlohmann::json read_json_from_file (std::string const &filename)
 
nlohmann::json read_json_from_string (std::string const &str)
 
nlohmann::json read_json_from_file_or_string (std::string const &str__)
 

Detailed Description

Interface to nlohmann::json library and helper functions.

Definition in file json.hpp.

Macro Definition Documentation

◆ JSON_USE_IMPLICIT_CONVERSIONS

#define JSON_USE_IMPLICIT_CONVERSIONS   0

Definition at line 29 of file json.hpp.

Function Documentation

◆ try_parse()

nlohmann::json try_parse ( std::istream &  is)
inline

Read json dictionary from file or string.

Terminate if file doesn't exist.

Definition at line 35 of file json.hpp.

◆ read_json_from_file()

nlohmann::json read_json_from_file ( std::string const &  filename)
inline

Definition at line 49 of file json.hpp.

◆ read_json_from_string()

nlohmann::json read_json_from_string ( std::string const &  str)
inline

Definition at line 60 of file json.hpp.

◆ read_json_from_file_or_string()

nlohmann::json read_json_from_file_or_string ( std::string const &  str__)
inline

Definition at line 68 of file json.hpp.