-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Milestone
Description
JSON file:
// composite data structure
"params" : [{"dict_1_key_1" : "dict_1_key_1 value",
"dict_1_key_2" : ["dict_1_key_2 value 1", "dict_1_key_2 value 2"]},
//
{"dict_2_key_1" : "dict_2_key_1 value",
"dict_2_key_2" : {"dict_2_A_key_1" : "dict_2_A_key_1 value", "dict_2_A_key_2" : "dict_2_A_key_2 value"}}],
//
// access to single elements of composite data structure
//
// a) standard notation
"dict_1_key_2_value_2_standard" : ${params}[0]['dict_1_key_2'][1]
// b) dotdict notation
"dict_1_key_2_value_2_dotdict" : ${params.0.dict_1_key_2.1}
Outcome:
a) standard notation works
b) dotdict notation causes: The variable '${params}['0']['dict_1_key_2']['1']' is not available
Seems that also indices are assumed to be key names as strings.
But the element after a dot must be interpreted depending on the data type (list or dictionary) of the element before the dot.
I would expect that both notations result in the same value: 'dict_1_key_2 value 2'
Metadata
Metadata
Assignees
Labels
Projects
Status
Done