They are not valid JSON numbers.
Section: Number gotchas
Do not use NaN or Infinity
json
json
{
"value": 0
}Explanation
Some JavaScript values do not serialize into standard JSON as raw literals.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Number gotchas
Inspect a value type with jq
Quickly verify the parsed type of a JSON value.
Escape quotes inside strings
Use backslash to include literal double quotes.