Hello,
I'm trying to read the following json object
[{
"id": "this is an ID",
"deviceAssetId": "test1",
"ownerId": "test1",
}, {
"id": "this is an ID 2",
"deviceAssetId": "test2",
"ownerId": "test2",
},
]
using the below tasker task
Task: Read Json
A1: AutoTools Json Read [
Configuration: Simple Mode: true
Json: /storage/emulated/0/Download/AutoTools/immich.json
Fields: id()
Separator: ,
Timeout (Seconds): 60
Structure Output (JSON, etc): On ]
A2: Popup [
Text: %id()
Layout: Popup
Timeout (Seconds): 5
Show Over Keyguard: On ]
However it does not get the data in "id" it just prints %id
but if I change the variable to deviceAssetID it works as expected and returns the correct result, is there something about the text "id" that isn't allowing it to work?
Below is the working task for deviceAssetID
Task: Read Json
A1: AutoTools Json Read [
Configuration: Simple Mode: true
Json: /storage/emulated/0/Download/AutoTools/immich.json
Fields: deviceAssetId()
Separator: ,
Timeout (Seconds): 60
Structure Output (JSON, etc): On ]
A2: Popup [
Text: %deviceassetid()
Layout: Popup
Timeout (Seconds): 5
Show Over Keyguard: On ]