Skip to content

Commit 8568ed5

Browse files
committed
Merge pull request #1051 from tjschuck/patch-1
Fix some invalid JSON in docs
2 parents b4949fb + b6b3aa5 commit 8568ed5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/howto/add_root_key.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Add the root key to your API is quite simple with AMS. The **Adapter** is what d
44

55
```json
66
{
7-
id: 1,
8-
title: "Awesome Post Tile",
9-
content: "Post content"
7+
"id": 1,
8+
"title": "Awesome Post Tile",
9+
"content": "Post content"
1010
}
1111
```
1212

@@ -23,10 +23,10 @@ ex:
2323

2424
```json
2525
{
26-
post: {
27-
id: 1,
28-
title: "Awesome Post Tile",
29-
content: "Post content"
26+
"post": {
27+
"id": 1,
28+
"title": "Awesome Post Tile",
29+
"content": "Post content"
3030
}
3131
}
3232
```
@@ -35,16 +35,16 @@ or if it returns a collection:
3535

3636
```json
3737
{
38-
posts: [
38+
"posts": [
3939
{
40-
id: 1,
41-
title: "Awesome Post Tile",
42-
content: "Post content"
40+
"id": 1,
41+
"title": "Awesome Post Tile",
42+
"content": "Post content"
4343
},
4444
{
45-
id: 2,
46-
title: "Another Post Tile",
47-
content: "Another post content"
45+
"id": 2,
46+
"title": "Another Post Tile",
47+
"content": "Another post content"
4848
}
4949
]
5050
}

0 commit comments

Comments
 (0)