Merge branch 'patch-1' of https://github.com/gberger42/json-server into gberger42-patch-1

Conflicts:
	README.md
This commit is contained in:
Typicode
2013-12-28 04:11:14 +01:00

View File

@ -16,8 +16,8 @@ Created with :heart: for front-end developers who need a flexible back-end for q
```bash
$ cat db.json
{
posts: [
{ id: 1, body: 'foo' }
"posts": [
{ "id": 1, "body": "foo" }
]
}
$ json-server --file db.json
@ -100,13 +100,13 @@ Here's 2 examples showing how to format JSON or JS seed file:
```javascript
{
posts: [
{ id: 1, body: 'foo'},
{ id: 2, body: 'bar'}
"posts": [
{ "id": 1, "body": "foo" },
{ "id": 2, "body": "bar" }
],
comments: [
{ id: 1, body: 'baz', postId: 1}
{ id: 2, body: 'qux', postId: 2}
"comments": [
{ "id": 1, "body": "baz", "postId": 1 }
{ "id": 2, "body": "qux", "postId": 2 }
]
}
```