void skip_simple_value()

in src/detail/skip_value.cpp [120:131]


void skip_simple_value(decode_context &context) {
  switch (peek(context)) {
    case '-':  // fallthrough
    case '0': case '1': case '2': case '3': case '4':  // fallthrough
    case '5': case '6': case '7': case '8': case '9': skip_number(context); break;
    case '"': skip_string(context); break;
    case 'f': skip_false(context); break;
    case 't': skip_true(context); break;
    case 'n': skip_null(context); break;
    default: fail(context, (std::string("Encountered token '") + peek(context) + "'").c_str());
  }
}