Method and assumptions
Use a lossless JSON parser that preserves large integer values while checking RFC 8259 syntax, then pretty-print with two or four spaces or remove insignificant whitespace for compact output. This checks syntax, not property meaning or compliance with an external schema. Text within the size limit is processed locally, so API responses and configuration values are not sent to our server.