How to check if a key exists in a nested JSON object in node?
<p>I've got the following JSON being sent to the server from the browser:</p>

<pre><code>{
    "title": "Testing again 2",
    "abstract": "An example document",
    "_href": "http://google.com",
    "tags": [ "person" ],
    "attributes": [ {
        "id": 1,
        "type": "TEXT",
        "data": "test"
    } ],
    "sections": [ {
        "id": 1,
        "type": "LIST",
        "data": [ {
            "revision": 124,
            "text": "test"
        } ]
    } ]
}
</code></pre>

<p>I need to make sure that the keys "_href", "id" and "revision" are not in the object anyplace at any level.</p>

<p>I found <a href="https://codereview.stackexchange.com/questions/112904/test-if-a-key-exists-anywhere-in-a-nested-object">this</a> but it doesn't quite work.</p>