Skip to main content

valid-javascript-property-identifier-character

Overview

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

A property of JSON is identified uniquely with a key, which must use valid characters only.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageJSON data is invalid as a property key/identifier uses an invalid character.
CodeJSON_V001
TypeValidation
Rule SystemSyntax
Broad CategoryJSON Property Key
Tagsjson data preliminary checks validation json javascript property key identifier

Suggested Fixes

  • If key name is unquoted, it must not contain any special characters that can require escaping e.g. '-', '/', '\', '_', '.', ',' etc.
  • If key name is quoted, did you perhaps miss the starting quote?

For More Information