how to get the key based on value in json using jquery

how to get the key based on value.
of i pass value as ‘A’ i should get the key ‘Attributes’

{
    "Employees": {
        "Attributes": [
            "A",
            "V",
            "C",
            "ZZ",
            "D",
            "E",
            "F",
            "G",
            "H",
            "I",
            "J"
        ],
        "Both": [
            "XXX",
            "YYY"
        ]
    }
}


Source: json

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.