Skip to content

Commit

Permalink
docs: update JSON5 example
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jan 13, 2024
1 parent 23b5159 commit 2dfc980
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -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
{
Expand All @@ -33,7 +33,7 @@ Create a `db.json` (or `db.json5`) file

<details>

<summary>`db.json5`</summary>
<summary>View db.json5 example</summary>

```json5
{
Expand All @@ -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
Expand Down

0 comments on commit 2dfc980

Please sign in to comment.