Here is my complete JSON data
- {
- "results":
- [
- {
- "Model Name": "abc",
- "Desc": "EmployeesPublic Access",
- "Doc": [],
- "Model":
- [
- {
- "Name": "Voltage",
- "ValueOption": []
- },
- {
- "Name": "Fan Speed",
- "ValueOption":
- [
- {
- "Id": "aMa0R0000004CD0SAM",
- "Name": "1000"
- }
- ]
- }
-
- ]
- },
- {
- "Model Name": "def",
- "Desc": "Employees Public Access",
- "Doc": [],
- "Model":
- [
- {
- "Name": "Parts",
- "ValueOption": []
- },
- {
- "Name": "Metal",
- "ValueOption":
- [
- {
- "Id": "aMa0R000000001XSAQ",
- "Name": "Indes"
- }
- ]
- }
-
-
- ]
- }
- ]
-
- }
Now If i pass the Id=aMa0R0000004CD0SAM(Highlighted above as well) then I have to get result that contains that Id like below(JSON format only)
- [
- {
- "Model Name": "abc",
- "Desc": "EmployeesPublic Access",
- "Doc": [],
- "Model":
- [
- {
- "Name": "Voltage",
- "ValueOption": []
- },
- {
- "Name": "Fan Speed",
- "ValueOption":
- [
- {
- "Id": "aMa0R0000004CD0SAM",
- "Name": "1000"
- }
- ]
- }
-
- ]
- }
- ]
Can someone help me how to acheive above result?