-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
JSONP:
{
"C" : 1,
"params" : [
2,
{"A" : 3,
"B" : [
{
"C" : 4,
${params.1.B.0.C} : 10,
"D" : 5,
${params }[1]['B'][0]['D'] : 11,
"E" : ["020", {"021" : "022"}],
"F" : {"023" : ["024", "025"]}
},
6
]
},
7
]
}
Result:
'A key with name '${params }[1]['B'][0]['D']' does not exist at this position. Use the '<name> : <value>' syntax to create a new key.'
The problem here is: "params" exists. But when overwriting the value of "D", by mistake the expression contains an additional blank after the key name 'params':
"D" : 5,
${params }[1]['B'][0]['D'] : 11,
Our naming convention tells that leading and trailing blanks are removed from key names. They shall not have any negative impact.
Therefore the additional blank in the example above should not cause errors.
Expected: 'D' has value 11.