in include/spotify/json/decode.hpp [77:91]
bool try_decode(
typename codec_type::object_type &object,
const codec_type &codec,
const char *data,
size_t size) noexcept {
if (size == 0) {
return false; // avoid exceptions below
}
try {
object = decode(codec, data, size);
return true;
} catch (...) {
return false;
}
}