bool is(const basic_json<char,Storage>& val) const { if (!val.is_string()) { return false; } std::string s = val.template as<std::string>(); try { boost::gregorian::date_from_iso_string(s); return true; } catch (...) { return false; } }
bool is(const basic_json<Char, Alloc>& val) const { return val.is_string(); }
bool is(const basic_json<Char, Alloc>& val) const { return val.is_string() && val.as_string().size() == 1; }