I've searched for the answer to this question, in many places. However, the only thing I can find is how to get the values of all of a certain key in a JSON file. I would like to know if there is a way to get the value of one specific key. I have a JSON file set up like so:
{
"Category": [{
"Subcategory": {
"Item1": {
"key1": "value1",
"key2": "value2",
"key3": "value3",
"key4": "value4",
"key5": "value5",
"key6": "value6"
},
"Item2": {
"key1": "value1",
"key2": "value2",
"key3": "value3",
"key4": "value4",
"key5": "value5",
"key6": "value6"
}
}
}]
}
I would like to know a method using JQuery/Javascript to get, for example, the value of Key1 in Item1(value1).