From b6b3aa5f2142724ad1b1dc1feeb54cb51718f916 Mon Sep 17 00:00:00 2001 From: "T.J. Schuck" Date: Wed, 12 Aug 2015 11:53:46 -0400 Subject: [PATCH] Fix some invalid JSON --- docs/howto/add_root_key.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/howto/add_root_key.md b/docs/howto/add_root_key.md index 6c1d7aa70..f03388033 100644 --- a/docs/howto/add_root_key.md +++ b/docs/howto/add_root_key.md @@ -4,9 +4,9 @@ Add the root key to your API is quite simple with AMS. The **Adapter** is what d ```json { - id: 1, - title: "Awesome Post Tile", - content: "Post content" + "id": 1, + "title": "Awesome Post Tile", + "content": "Post content" } ``` @@ -23,10 +23,10 @@ ex: ```json { - post: { - id: 1, - title: "Awesome Post Tile", - content: "Post content" + "post": { + "id": 1, + "title": "Awesome Post Tile", + "content": "Post content" } } ``` @@ -35,16 +35,16 @@ or if it returns a collection: ```json { - posts: [ + "posts": [ { - id: 1, - title: "Awesome Post Tile", - content: "Post content" + "id": 1, + "title": "Awesome Post Tile", + "content": "Post content" }, { - id: 2, - title: "Another Post Tile", - content: "Another post content" + "id": 2, + "title": "Another Post Tile", + "content": "Another post content" } ] }