comment out lines in simple json to put some description

How do I add comments in a simple JSON file which be read from s3 in AWS. This is my JSON file.

{
    "Parameters": {
        "KeyPairName": "mykey",
        "InstanceTypes": "t2.micro",

        "prodImageIds": "ami-d7abd1b8",
        "testImageIds": "ami-e41b618b",
        "devImageIds": "ami-8f8afde0"
    },
    "StackPolicy": {
        "Statement": [
            {
                "Effect": "Allow",
                "NotAction": "Update:Delete",
                "Principal": "*",
                "Resource": "*"
            }
        ]
    }
}

JSON specification doesn't include comments of any kind. You can simply add a standard key/value pair with a key that gets ignored by the application (maybe _comment ) but there is no way to insert a proper comment.

Here the spec details: http://www.json.org/

链接地址: http://www.djcxy.com/p/3408.html

上一篇: 你如何做yaml阻止评论?

下一篇: 在简单的json中注释掉一些行来加上一些描述