Open yangming9 opened 1 year ago
my patch key contain a number as a key(but it is real a str),Can we be compatible with this format
my json example : { "modular": 213, "enable": true, "info":[ { "feature_param_dict_list": [{ "1" : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "2" : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "3" : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "4" : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "5" : [0], "6" : [0], "7" : [0, 0, 0, 0], "8" : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "9" : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "10": [0, 0] } ] }] }
my path example : $.info[*].feature_param_dict_list[*].1[0]
$.info[*].feature_param_dict_list[*].1[0]
You should be able to quote the 1 and use the path $.info[*].feature_param_dict_list[*].["1"][0].
1
$.info[*].feature_param_dict_list[*].["1"][0]
my patch key contain a number as a key(but it is real a str),Can we be compatible with this format
my path example :
$.info[*].feature_param_dict_list[*].1[0]