measure.cpp
/*
 * Turns all date in a measure object into
 * a string that can be turned into a JSONString
 @return
    std::string
*/
Turns all date in a measure object into
a string that can be turned into a JSONString
Turns all date in a measure object into a string that can be turned into a JSONString
std::string Measure::toJSON() const{
    json j;
    for (auto const& reading : readings)
        j[std::to_string(reading.first)] = reading.second;
    return j.dump();
}
std :: string Measure :: toJSON ( ) const { json j ; for ( auto const & reading : readings ) j [ std :: to_string ( reading . first ) ] = reading . second ; return j . dump ( ) ; }
Turns all date in a measure object into
 a string that can be turned into a JSONString
Turns all date in a measure object into a string that can be turned into a JSONString