r/tasker • u/ss_sb_000 • 3d ago
Using a json Value as array index
Hi, why is it not possible to set an array element by using a value contained within a JSON structure directly as an index? For example, if `%json.index = 3`,
`Variable Set %array_value(%json.index) to 5`
does not result in `%array_value(3) = 5`.
Instead, one must do the following:
`Variable Set %index to %json.index`
`Variable Set %array_value(%index) to 5`
Thanks
Stefano
0
Upvotes
3
u/jecttquintchen 3d ago
jsons just like to keep us on toes