Is this JSON flattener lossless?
It is lossless for JSON objects and arrays that follow the typed-bracket contract shown on the page. The verifier does not merely flatten the input: it unflattens the result and compares it deeply with the original value. Inputs outside the contract, such as scalar roots or circular structures, fail with an explicit error instead of pretending to round-trip.