Merge pull request #1827 from lamielle/doc-whitespaces

doc: uses spaces consistently in sample JSON
This commit is contained in:
Xiang Li 2014-12-02 07:44:03 -08:00
commit f02eae934b

View File

@ -643,22 +643,22 @@ We should see the response as an array of items:
```json ```json
{ {
"action": "get", "action": "get",
    "node": { "node": {
     "key": "/", "key": "/",
       "dir": true, "dir": true,
       "nodes": [ "nodes": [
         { {
             "key": "/foo_dir", "key": "/foo_dir",
             "dir": true, "dir": true,
             "modifiedIndex": 2, "modifiedIndex": 2,
             "createdIndex": 2 "createdIndex": 2
          }, },
          { {
             "key": "/foo", "key": "/foo",
             "value": "two", "value": "two",
             "modifiedIndex": 1, "modifiedIndex": 1,
             "createdIndex": 1 "createdIndex": 1
          } }
] ]
} }
} }
@ -673,33 +673,33 @@ curl -L http://127.0.0.1:4001/v2/keys/?recursive=true
```json ```json
{ {
    "action": "get", "action": "get",
    "node": { "node": {
        "key": "/", "key": "/",
        "dir": true, "dir": true,
        "nodes": [ "nodes": [
            { {
                "key": "/foo_dir", "key": "/foo_dir",
                "dir": true, "dir": true,
                "nodes": [ "nodes": [
                    { {
                        "key": "/foo_dir/foo", "key": "/foo_dir/foo",
                        "value": "bar", "value": "bar",
                        "modifiedIndex": 2, "modifiedIndex": 2,
                        "createdIndex": 2 "createdIndex": 2
                    } }
                ], ],
                "modifiedIndex": 2, "modifiedIndex": 2,
                "createdIndex": 2 "createdIndex": 2
            }, },
            { {
                "key": "/foo", "key": "/foo",
                "value": "two", "value": "two",
                "modifiedIndex": 1, "modifiedIndex": 1,
                "createdIndex": 1 "createdIndex": 1
            } }
        ] ]
    } }
} }
``` ```