On 2017-02-22 21:08, Gilmeh Serda wrote:
On Wed, 08 Feb 2017 09:31:09 -0800, Rob Gaddi wrote:

JSON's cute, but the format doesn't support inline comments.

{
    "your_key": "whatever",
    "COMMENT": "blah",
    "meh": [
        "yup",
        "yep",
        "yip"
    ],
    "COMMENT": "mooh"
}

Works fine for me. As long as you don't have any use for your "COMMENT"
key elsewhere, it will continue to work.

That's a dictionary, so if you read it in and then write it out again, the order might change, and one of the comments will be lost.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to