Skip to content

Instantly share code, notes, and snippets.

View Aurailus's full-sized avatar

Auri Collings Aurailus

View GitHub Profile
@rubenwardy
rubenwardy / sol_JSON.cpp
Last active March 2, 2020 00:38
Sol3 Read/parse JSON from file or string
#include <json/json.h>
#include <fstream>
#include <sstream>
namespace {
sol::object json_to_lua(Json::Value value, sol::this_state state) {
switch (value.type()) {
case Json::nullValue:
return sol::nil;