JSON, JSONC, Javascript & Tasker

1,541 views
Skip to first unread message

Paul [sabret00the]

unread,
Aug 10, 2012, 1:29:05 PM8/10/12
to tas...@googlegroups.com
I'm really confused right now. I've seen Tasker documentation mention that it can parse JSON but nothing shows how? I'd also like to set variables in Tasker while doing that, something else that is mentioned but in me reading far too much, I simply can't find the page that is referenced to do it?

Rarry

unread,
Aug 10, 2012, 1:42:27 PM8/10/12
to tas...@googlegroups.com
Search for 'json' and look for a thread a few days ago called 'walkthrough'. I can't seem to give you a link but there's what you need there to get you started.


Paul [sabret00the]

unread,
Aug 10, 2012, 1:53:13 PM8/10/12
to tas...@googlegroups.com
This https://groups.google.com/d/topic/tasker/9gPAds0xZrA/discussion
is the only one that came up. Sadly it doesn't answer my question as
I'd like to parse it and handle it in JS.
--
Until Next Time, Make Me A Marvel!

Pent

unread,
Aug 10, 2012, 2:21:47 PM8/10/12
to Tasker
There's nothing special about it. Just use the JSON object.

Pent

Paul [sabret00the]

unread,
Aug 10, 2012, 2:24:20 PM8/10/12
to tas...@googlegroups.com
Where is that? If you click script, it's not there.

On 10 August 2012 19:21, Pent <sup...@apps.dinglisch.net> wrote:
> There's nothing special about it. Just use the JSON object.
>
> Pent



Pent

unread,
Aug 11, 2012, 4:11:03 AM8/11/12
to Tasker
> Where is that? If you click script, it's not there.

In the JavaScript.

Pent

Paul [sabret00the]

unread,
Aug 11, 2012, 4:13:21 AM8/11/12
to tas...@googlegroups.com
Thanks and quick question: to fetch and set variables in the JS, do I simply use
Tasker.setVariable and Tasker.variable.variableName?

Pent

unread,
Aug 11, 2012, 4:32:39 AM8/11/12
to Tasker
> Thanks and quick question: to fetch and set variables in the JS, do I simply use
> Tasker.setVariable and Tasker.variable.variableName?

Read the JavaScript section of the userguide.

Pent

Paul [sabret00the]

unread,
Aug 11, 2012, 4:49:39 AM8/11/12
to tas...@googlegroups.com
Ah, it would seem that on my device, the userguide wasn't scrolling
past the introduction. On the website however, it's showing all the
information I require.
Reply all
Reply to author
Forward
0 new messages