area.cpp
/*
  Convert this Area object, and the Measure instances within those, to a JSON string.
  (https://github.com/nlohmann/json) for more info

  @return
    std::string of JSON

  @example
    InputFile input("data/popu1009.json");
    auto is = input.open();

    auto cols = InputFiles::DATASETS["popden"].COLS;

    auto areasFilter = BethYw::parseAreasArg();
    auto measuresFilter = BethYw::parseMeasuresArg();
    auto yearsFilter = BethYw::parseMeasuresArg();

    Areas data = Areas();
    std::cout << data.toJSON();
*/
Convert this Area object, and the Measure instances within those, to a JSON string.
for more info
Convert this Area object and the Measure instances within those to a JSON string . for more info
std::string Area::toJSON() const {
    json j;
    for (auto const& name : names)
        j["names"][name.first] = name.second;
    for (auto const& measure : measures)
        j["measures"][measure.first] = json::parse(measure.second.toJSON());
    return j.dump();
}
std :: string Area :: toJSON ( ) const { json j ; for ( auto const & name : names ) j [ " " ] [ name . first ] = name . second ; for ( auto const & measure : measures ) j [ " " ] [ measure . first ] = json :: parse ( measure . second . toJSON ( ) ) ; return j . dump ( ) ; }
Convert this Area object, and the Measure instances within those, to a JSON string.
Convert this Area object and the Measure instances within those to a JSON string .