A simple reader/writer for json in c++