res = false;
break;
}
- else if (v->type == jbvString || v->type == jbvNull ||
- v->type == jbvBool || v->type == jbvNumeric)
+ else if (v->type >= jbvNull && v->type < jbvArray)
{
if (!compareJsonbValue(v, &v2))
{
appendKey(*state, v);
break;
case WJB_VALUE:
- Assert((v->type >= jbvNull && v->type <= jbvBool) || v->type == jbvBinary);
+ Assert((v->type >= jbvNull && v->type < jbvArray) || v->type == jbvBinary);
appendValue(*state, v);
break;
case WJB_ELEM:
- Assert((v->type >= jbvNull && v->type <= jbvBool) || v->type == jbvBinary);
+ Assert((v->type >= jbvNull && v->type < jbvArray) || v->type == jbvBinary);
appendElement(*state, v);
break;
case WJB_END_OBJECT: