I have JSON data
var json = {"options": {
"key1": "value2",
"key2": "value2",
"key3": "value3",
}
}
And I want to add one more key with value to it using JavaScript, but I want it to be on the top like this:
var json = {"options": {
"new_key": "new_value",
"key1": "value2",
"key2": "value2",
"key3": "value3",
}
}
How can I do it?