Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / JSON errors / JSON Parse error: Invalid digits after decimal poi
JavaScriptCore JSON.parse · JavaScriptCore (Bun 1.4.1)

JSON Parse error: Invalid digits after decimal point

This message comes from JavaScriptCore JSON.parse on JavaScriptCore (Bun 1.4.1). In this registry it is produced by 1 distinct mistake. Positions in the real message vary with your input; the causes do not.

What produces this message

Trailing decimal point in a JSON number

Input
{"a": 1.}

Exact message: JSON Parse error: Invalid digits after decimal point

Fix: Write `1.0` or `1`.

What other parsers say about the same input

If a colleague reports a different message for what looks like the same file, this is why.

Parser Message for the same inputs
CPython json.loadsExpecting ',' delimiter: line L column C (char N)
JSON::PPmalformed number (no digits after decimal point), at character offset N (before "…")
Jackson ObjectMapperUnexpected character ('}' (code 125)) in numeric value: Decimal point not followed by a digit
Ruby JSON.parseunexpected token at '…'
SpiderMonkey JSON.parseJSON.parse: unterminated fractional number at line L column C of the JSON data
System.Text.Json Deserialize'}' is invalid within a number, immediately after a decimal point ('.'). Expected a digit ('0'-'9'). Path: $ | LineNumber: L | BytePositionInLine: C.
System.Text.Json JsonDocument'}' is invalid within a number, immediately after a decimal point ('.'). Expected a digit ('0'-'9'). LineNumber: L | BytePositionInLine: C.
V8 JSON.parseUnterminated fractional number in JSON at position N (line L column C)
encoding/json Unmarshalinvalid character '}' after decimal point in numeric literal
json_decodeSyntax error
orjsonno digit after decimal point: line L column C (char N)
serde_json::from_strinvalid number at line L column C

← All JSON parser errors

Standards this registry is checked against

Only standards bodies and peer-reviewed venues are cited. Error strings on this site are observed by executing each parser; the standards above define what the parser is reacting to.