Esc

COMARK2608 · warning

comark/table/invalid-json

Write a table's JSON so it parses

The JSON of a file or a fence doesn't parse, so the table renders nothing. The message gives the parser's error. Trailing commas, single quotes, and keys without quotes are the usual causes.

Incorrect

::table
```json
[{ "pond": "Mill pond", "ducks": 14, }]
```
::
md
lint-comark example.mdexample.md:1:1 comark/table/invalid-json::table 1: its JSON doesn't parse: Expected double-quoted property name in JSON at position 37 (line 1 column 38).Fix the JSON.✖ 1 problem

Correct

::table
```json
[{ "pond": "Mill pond", "ducks": 14 }]
```
::
md
lint-comark example.md✔ No problems