The values preset demonstrates that object-only validation would incorrectly reject valid JSON texts.

Each root category is counted

The result contains one boolean, number, string, null and array with no objects.

Conversion preserves JSON values

The output array contains those five parsed values in original record order.