complete-json-object
Overview
This rule belongs to the json-validation
ruleset and states that:
A JSON object must consist of key-value property pairs which are terminated properly.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | JSON data is invalid as an unexpected end of file was encountered while parsing JSON Object. |
Code | JSON_V200 |
Type | Validation |
Rule System | Syntax |
Broad Category | JSON Start/End |
Tags | json data preliminary checks validation json object properties key-value pairs |
Suggested Fixes
- Ensure that file contents are complete.
- Make sure that all properties of the JSON object make use of key-value pairs that are terminated correctly.
- Make sure all keys are quoted and values escaped properly.
- Check for any syntax errors in the JSON object under consideration