valid-json-comment
Overview
This rule belongs to the json-validation
ruleset and states that:
A valid JSON comment must start with double slashes.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | JSON data is invalid as a comment could not be parsed. |
Code | JSON_V250 |
Type | Validation |
Rule System | Syntax |
Broad Category | Miscellaneous |
Tags | json data preliminary checks validation json comment |
Suggested Fixes
- Comments must start with a double forward slash '//'.
- Did you forget to enclose a value starting with a forward slash in quotation marks?