What i can to do is extend my JSON object with a new attrubute.
E.g
var jsonText = {
"Repeats": 1,
"Trials": 4,
"GroupName": "Mobile phones",
"targets": [
{
"name": "Apple",
},
{
"name": "Samsung",
}
]}
What I would like to end up with is the inclusion of a new item so extend the object so it then looks something like.
var jsonText = {
"NewItem" : NewValue,
"Repeats": 1,
"Trials": 4,
"GroupName": "Mobile phones",
"targets": [
{
"name": "Apple",
},
{
"name": "Samsung",
}
]}
jsonText.NewItem = NewValue?