Skip to content

Instantly share code, notes, and snippets.

View pboettch's full-sized avatar
🐕‍🦺

Patrick Boettcher pboettch

🐕‍🦺
View GitHub Profile
@pboettch
pboettch / libconfig-json.cpp
Last active January 8, 2019 14:03
Convert Settings from Libconfig++ to NLohmann's JSON
#include <config/config.h>
#include <nlohmann/json.hpp>
namespace libconfig
{
void to_json(nlohmann::json &j, const Setting &setting)
{
json *data;
try {