<$list filter="[[mydata]getindex[0/age]]"/>

(assuming JSON mangler)

On Wednesday, April 28, 2021 at 8:02:14 AM UTC-7 [email protected] 
wrote:

> How can I access json data in a smart way when my code is not in the 
> context of a button-started action (which I call action mode)?
>
> say this simple text of my "data" tiddler:
> -----------------
> [
>   { "captain": "Hook", "age": "42" },
>   { "captain": "Planet", "age": "37" }
> ]
>
> the indexes filter returns 0 and 1.
>
> with get[0] I would get { "captain": "Hook", "age": "42" }
>
> I can't get[0/name] to get "Hook".
>
> IS there a plugin or any other mean to get:
> - the names of the fileds within any json objects?
> - getting any values from json with a syntax like that I give, or even a 
> more ambitious xpath query?
>
> I have installed json mangler. but I have no docs about it, not even 
> knowing what it really does besides providing a bar for json tiddlers?
>
> regards.
>
> -- 
> Jean-Pierre
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/edb1bfef-56d7-4c9a-94ad-03490e7fabf6n%40googlegroups.com.

Reply via email to