E018Error
Number has a leading zero
A number has an extra zero in front of it.
What it means
JSON does not allow leading zeros on numbers (e.g. 007). A single 0, or 0 followed by a decimal point, is fine — but 0 followed by more digits is not.
Example
Invalid
{ "code": 0123 }Valid
{ "code": 123 }How to fix it
Remove the leading zero, or quote the value if you need to preserve it.
Validate your JSON to see this and every other issue highlighted in one pass.
Diagnostics on this page come from @jsonlint/core, the open-source engine that powers the JSONLint validator. Install it with npm install @jsonlint/core.