Build timeline JSON with jsoncpp