When you try to update the array if you want to add new key to it it trows exception 'Update method has an off key', is there a way to add function to be able to add new keys with update method?
Example i have array stored like this
[
{
"key": "javascript",
"ru": {
"value": "ru_RU"
},
"bg": {
"value": "bg_BG"
},
"cs": {
"value": "cs_CZ",
},
"de": {
"value": "de_DE"
}
}
]
now i want to update it to add new lang to be so
[
{
"key": "javascript",
"ru": {
"value": "ru_RU"
},
"bg": {
"value": "bg_BG"
},
"cs": {
"value": "cs_CZ"
},
"de": {
"value": "de_DE"
},
"fr": {
"value": "fr_FR"
}
}
]
When you try to update the array if you want to add new key to it it trows exception 'Update method has an off key', is there a way to add function to be able to add new keys with update method?
Example i have array stored like this
[
{
"key": "javascript",
"ru": {
"value": "ru_RU"
},
"bg": {
"value": "bg_BG"
},
"cs": {
"value": "cs_CZ",
},
"de": {
"value": "de_DE"
}
}
]
now i want to update it to add new lang to be so
[
{
"key": "javascript",
"ru": {
"value": "ru_RU"
},
"bg": {
"value": "bg_BG"
},
"cs": {
"value": "cs_CZ"
},
"de": {
"value": "de_DE"
},
"fr": {
"value": "fr_FR"
}
}
]