mirror of
https://github.com/typicode/json-server.git
synced 2025-07-25 11:12:22 +08:00
docs: update JSON5 example
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user