Can anybody help me to get data from the json below.I have the json data in the format below
[
{
"methods": [
{
"parametersTypes": [
"int",
"Menu"
],
"sourceFile": {
"file": {
"path": "/mnt/c/anyplace-master/android/actionbarsherlock/src/android/support/v4/app/Watson.java"
}
},
"metricsValues": {
"MethodLinesOfCode": 33.0,
"CyclomaticComplexity": 13.0,
"CouplingDispersion": 0.6666666666666666,
"MaxNesting": 5.0,
"ChangingClasses": 0.0,
"ParameterCount": 2.0,
"CouplingIntensity": 3.0,
"NumberOfAccessedVariables": 13.0,
"MaxCallChain": 1.0,
"ChangingMethods": 0.0
},
"fullyQualifiedName": "android.support.v4.app.Watson.onCreatePanelMenu",
"smells": [
{
"name": "LongMethod",
"reason": "MLOC > 6.74646840148693",
"startingLine": 39,
"endingLine": 82
}
]
I need just the value of the key "name" which is "longMethod"
"name": "LongMethod"
NB: this block is a part of my JSON file and it repeats
Thank you in advance!