A key path lists where a field sits, and it drops array indexes. A JSON Pointer addresses one value, and a slash inside a key is written as ~1.
Articles about building and maintaining websites.
A key path lists where a field sits, and it drops array indexes. A JSON Pointer addresses one value, and a slash inside a key is written as ~1.
encodeURIComponent escapes data inside one URL piece. encodeURI keeps the characters that hold a full address together. The two functions are not interchangeable.
Seeing a JWT header and payload means the segments decoded. It does not mean the signature matches, the token is unexpired, or you should accept it.
A good URL slug is readable, stable, and honest about Unicode. This article explains separators, punctuation, accents, and what the YallaSolve generator actually does.
CSV is a table of rows and columns. JSON is a typed tree. Converting an array of objects to CSV keeps nested values as JSON text in cells. That is a limit, not a failure of the table.
JSON Schema is a contract for instances that already parse. A schema generated from one sample marks present keys required and cannot see optional fields, enums, or combinators.
JSON is a strict data language. YAML is a superset with comments, anchors, and multiple documents. Choose JSON when you need one unambiguous parse; choose YAML when humans edit config and the subset is documented.
JSON is one value. JSON Lines (NDJSON) is one JSON value per line, usually for logs and streams. An object is not a JSON Lines file, and a pretty-printed array is not NDJSON.
Formatting adds whitespace so humans can read JSON. Minification removes it so machines can store or send a smaller string. Neither changes the data, and neither repairs invalid JSON.
Most JSON syntax errors are not exotic: trailing commas, single quotes, comments, bad escapes, and extra output before the first brace. Here is how they show up and why JSON rejects them.