Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么我的存储库README.md中的第二个符号“{”有红色背景?
使用的代码是
## Example output - latest: ```json { { "term": "", "when": "" } ... } ```
您的 JSON 格式不正确。外部对象没有键来标记内部对象的值。
Github 使用红色背景表示您的语法存在问题,在这种情况下是您的 JSON 对象的结构无效。
尝试使用类似的东西:
```json { "key": { "term": "", "when": "" } ... } ```
如果您试图表示一个对象数组,请使用以下内容:
```json [ { "term": "", "when": "" } ... ] ```