Skip to main content

valid-null-property-value

Overview

This rule belongs to the json-validation ruleset and states that:

A nullable property value can use null as its value which should not be enclosed in quotation marks.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageJSON data is invalid as the null property value could not be parsed.
CodeJSON_V103
TypeValidation
Rule SystemSyntax
Broad CategoryJSON Property Value
Tagsjson data preliminary checks validation json null nil property value

Suggested Fixes

  • Check if the word null is spelled correctly.
  • Ensure that null is not surrounded by quotation marks.
  • If the null value is not intended to be used as the JSON null value, enclose it in double quotation marks.
  • If the value is quoted, make sure that there is no missing starting/ending quotation mark.
  • If the value is quoted, make sure that there are no extra trailing/leading quotation marks around the value.
  • Make sure that the property value is properly escaped.
  • If there is any extra content before the actual JSON content, remove that.

For More Information