Skip to content

Instantly share code, notes, and snippets.

View kevinkreiser's full-sized avatar

Kevin Kreiser kevinkreiser

  • osm.org/node/158543009
  • 09:20 (UTC -04:00)
View GitHub Profile
@kevinkreiser
kevinkreiser / json_serializer.cpp
Last active April 4, 2017 19:59
Serialize Json with C++11 Initializer List Syntax
//Build this with something like: g++ json_serializer.cpp -std=c++11 -I/usr/include
//Requires you at least have boost base library
#include <ostream>
#include <boost/variant.hpp>
#include <memory>
#include <string>
#include <cinttypes>
#include <cstddef>
#include <unordered_map>