docs: update JSON5 example

This commit is contained in:
typicode
2024-01-13 02:54:43 +01:00
parent 23b51591e6
commit 2dfc98009e

View File

@ -13,7 +13,7 @@ npm install json-server
## Usage
Create a `db.json` (or `db.json5`) file
Create a `db.json` or `db.json5` file
```json
{
@ -33,7 +33,7 @@ Create a `db.json` (or `db.json5`) file
<details>
<summary>`db.json5`</summary>
<summary>View db.json5 example</summary>
```json5
{
@ -51,6 +51,8 @@ Create a `db.json` (or `db.json5`) file
}
```
You can read more about JSON5 format [here](https://github.com/json5/json5).
</details>
Pass it to JSON Server CLI