Counts complete top-level JSON objects in a string that failed to parse as one — the
"two envelopes back to back" shape. String-aware brace counting; returns 0 unless at least two
objects were found, so a single malformed object is left to the ordinary diagnostic.
Counts complete top-level JSON objects in a string that failed to parse as one — the "two envelopes back to back" shape. String-aware brace counting; returns 0 unless at least two objects were found, so a single malformed object is left to the ordinary diagnostic.