Skip to main content

valid-property-value

Overview

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

A JSON property key is followed by a property value which must start and terminate properly, escaped if necessary and quoted if applicable.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageJSON data is invalid as an unexpected character was encountered while parsing the property value.
CodeJSON_V100
TypeValidation
Rule SystemSyntax
Broad CategoryJSON Property Value
Tagsjson data preliminary checks validation json property value

Suggested Fixes

  • If unquoted, try enclosing the value 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.
  • Remove any extra content between ':' separator and the property value.

For More Information