val2 consists of a composite string. The first part is represented by ${par3}[0], the second part is represented by ${p${par4}[0]m2}[1].
Because of the string is a composite one, it is expected that the entire expression in encapsulated in quotes. The quotes are missing, therefore I expect an error message, telling about these missing quotes. But I do not expect returned values.
Instead of this the JsonPreprocessor returns values. The value of val2 is: 'ara'.
When I add the missing quotes:
"val2" : "${par3}[0]${p${par4}[0]m2}[1]"
the JsonPreprocessor also returns values, but now this is expected. But the value of val2 now is: 'A'.
Both returned values are wrong. In second case (with quotes around expression) the expected value for val2 is 'AB'.
This is the content of JSON file:
val2
consists of a composite string. The first part is represented by${par3}[0]
, the second part is represented by${p${par4}[0]m2}[1]
.Because of the string is a composite one, it is expected that the entire expression in encapsulated in quotes. The quotes are missing, therefore I expect an error message, telling about these missing quotes. But I do not expect returned values.
Instead of this the JsonPreprocessor returns values. The value of
val2
is: 'ara
'.When I add the missing quotes:
"val2" : "${par3}[0]${p${par4}[0]m2}[1]"
the JsonPreprocessor also returns values, but now this is expected. But the value of
val2
now is: 'A
'.Both returned values are wrong. In second case (with quotes around expression) the expected value for
val2
is 'AB
'.