I am having problems with some JS and hope someone can help.
I have two JSON strings that are assembled through AJAX using jQuery and then parsed accordingly. The problem is that if I ever want to add new functions to the application I create, the JSON strings are statically stored in the database and will not change if new attributes are added to the default JSON string.
var string1 = {
"col1": [
{
"foo": "bar"
}
],
"col2": [
{
"foo": "bar",
"bar": "foo"
}
],
"col3": [
{
"foo": "bar"
}
]
}
var string2 = {
"col1": [
{
"foo": "bar"
}
],
"col2": [
{
"foo": "bar"
}
]
}
string2the user saved a script hypothetically saved three days ago. Since then, the default row has been added string1, and information should be added to string2.
Can anyone help with this?
mbark source
share