Says I have var input = {'name':'john'}
I do
input['name'] = 'James'
it become var input = {'name':'john'} but can I pass value with dot to access nested property?
Like
var input = {"name":"john","grades":"{english:"A","math":"C"}"}
I can't change the math value by doing input["grades.math"].
input["grades"]["math"]input["grades]["math"]"You can have properties with special characters that cannot be defined using dot notation. So you will have to use bracket notation