1. The json (Array) format:
[
{
"Group": "1",
"ID": 1,
"Name": "User1",
"Description": "Desc1"
},
{
"Group": "2",
"ID": 3,
"Name": "DeleteMe",
"Description": "Desc2"
},
{
"Group": "3",
"ID": 2,
"Name": "User3",
"Description": "Desc3"
}
]
Desired output, by deleting object that has ID == 3:
[
{
"Group": "1",
"ID": 1,
"Name": "User1",
"Description": "Desc1"
},
{
"Group": "3",
"ID": 2,
"Name": "User3",
"Description": "Desc3"
}
]
2. Also how to to with json (Object) format:
{
"Group": "1",
"ID": 1,
"Name": "User1",
"Description": "Desc1"
},
{
"Group": "2",
"ID": 3,
"Name": "DeleteMe",
"Description": "Desc2"
},
{
"Group": "3",
"ID": 2,
"Name": "User3",
"Description": "Desc3"
}
Desired output, by deleting object that has ID == 3:
{
"Group": "1",
"ID": 1,
"Name": "User1",
"Description": "Desc1"
},
{
"Group": "3",
"ID": 2,
"Name": "User3",
"Description": "Desc3"
}
What I have tried:
I'm new on JSON, any assist would be great.