SyntaxBench / Reference notes
Uncategorized
-
Measure the gap between two log timestamps
Compare two integer timestamps using explicit units. The interval is calculated with integer arithmetic, including for microsecond and nanosecond logs. When to use this check Two…
-
Check a JSON Lines file before importing it
Paste one JSON value per line to locate the first malformed record. The checker reports the physical line number and preserves the original numeric text. When…
-
Inspect repeated query parameters without losing their order
Turn a query string into an ordered list of decoded name/value pairs. Repeated keys and empty values remain visible. When to use this check A catalog…
-
Converting 19-Digit Nanosecond Timestamps to Human-Readable Dates
Converting 19-digit nanosecond timestamps into human-readable date formats requires handling 64-bit integers without precision loss. This guide details integer boundary limits, mathematical decomposition into epoch seconds…
-
Converting Newline-Delimited JSON (NDJSON) into a Standard JSON Array
This guide explains how to convert newline-delimited JSON into a standard bracketed JSON array, covering structural differences, line-by-line parsing mechanics, delimiter handling, error mitigation, and streaming…
-
Handling Negative Unix Timestamps for Dates Prior to 1970
Working with historical dates prior to January 1, 1970, requires signed Unix timestamps counting backward from the epoch zero point. This technical guide outlines binary signed…
-
Handling Unescaped Quotes and Backslashes in Raw JSON Strings
This technical guide explains how unescaped quotes and isolated backslashes disrupt JSON parsers, examines the structural damage caused by naive string stripping, and details reliable serialization…
-
How to Prevent Double URL Encoding in Nested Redirect Parameters
Passing URLs as parameters within multi-hop redirect flows often causes double percent-encoding. This guide explains why percent characters transform into literal escape sequences, details the associated…
-
Why Plus Signs Turn into Spaces When Decoding URL Parameters
When decoding URL query parameters, unexpected spaces frequently appear in place of plus signs. This behavior stems from the historical divide between generic URI specifications and…
-
Troubleshooting Trailing Comma Syntax Errors in JSON Payloads
Trailing commas represent one of the most frequent syntax issues encountered when transferring JSON payloads across web services. This technical guide explains the structural requirements of…