v2.1.1 posted! indexes Operator <https://joshuafontany.github.io/TW5-JsonMangler/#>17th March 2020 at 4:49pm Filter Operators purpose select all data properties of the input titles (see output) input <https://joshuafontany.github.io/TW5-JsonMangler/#Filter%20Syntax> a selection of titles <https://joshuafontany.github.io/TW5-JsonMangler/#Title%20Selection> suffix <https://joshuafontany.github.io/TW5-JsonMangler/#Filter%20Step> the indexes operator uses a rich suffix, see below for details parameter <https://joshuafontany.github.io/TW5-JsonMangler/#Filter%20Parameter> (optional) an index-path to a property in the data tiddler output the immediate (root) property names or indices found at the tiddler or path location provided (all property paths are returned if the ":all" suffix is used)
Each input title is processed in turn, and is ignored if it does not denote a data tiddler <https://joshuafontany.github.io/TW5-JsonMangler/#DataTiddlers>. The list of property names is retrieved from the data tiddler (in no particular order) and then dominantly appended <https://joshuafontany.github.io/TW5-JsonMangler/#Dominant%20Append> to the operator's output. Where a tiddler's content is JSON <https://joshuafontany.github.io/TW5-JsonMangler/#JSONTiddlers>, the indexes operator uses an extended syntax: [indexes:all[<path>]] - all: a flag to retrieve the full path to all properties in the JSON tiddler. By default, only the immediate ("root") indexes from the tiddler or path location are returned. - path: an index or slash-delimited index path (see the Read Me <https://joshuafontany.github.io/TW5-JsonMangler/#%24%3A%2Fplugins%2Fjoshuafontany%2Fjsonmangler%2Freadme> ). Examples <https://joshuafontany.github.io/TW5-JsonMangler/#indexes%20Operator%20(Examples)> https://joshuafontany.github.io/TW5-JsonMangler/ Best, Joshua Fontany On Monday, March 16, 2020 at 7:35:47 PM UTC-7, Joshua Fontany wrote: > > Hi everyone, > > I've worked a few bugs out and introduced a more flexible `indexes[]` > filter. Hopefully this will make jsonmangler robust enought for some really > cool projects. > > Looking forward to what people do with these new capabilities. I have > included a standard documentation tiddler for the new functions: > > https://joshuafontany.github.io/TW5-JsonMangler/#indexes%20Operator > > purpose select all data properties of the input titles (see output) >> input <http://127.0.0.1:8080/JsonMangler#Filter%20Syntax> a selection of >> titles <http://127.0.0.1:8080/JsonMangler#Title%20Selection> >> suffix <http://127.0.0.1:8080/JsonMangler#Filter%20Step> the indexes >> operator >> uses a rich suffix, see below for details >> parameter <http://127.0.0.1:8080/JsonMangler#Filter%20Parameter> (optional) >> an index-path to a property in the data tiddler >> output the property names or indices found at the tiddler or path >> location provided (only immediate properties are returned if the ":root" >> suffix is used) >> >> Each input title is processed in turn, and is ignored if it does not >> denote a data tiddler <http://127.0.0.1:8080/JsonMangler#DataTiddlers>. >> The list of property names is retrieved from the data tiddler (in no >> particular order) and then dominantly appended >> <http://127.0.0.1:8080/JsonMangler#Dominant%20Append> to the operator's >> output. >> >> Where a tiddler's content is JSON >> <http://127.0.0.1:8080/JsonMangler#JSONTiddlers>, the indexes operator >> uses an extended syntax: >> >> [indexes:root[<path>]] >> >> >> - root: a flag to only retrieve the immediate ("root") indexes from >> the tiddler or path location >> - path: a slash-delimited index path (see the Read Me >> >> <http://127.0.0.1:8080/JsonMangler#%24%3A%2Fplugins%2Fjoshuafontany%2Fjsonmangler%2Freadme> >> ) >> >> Examples >> <http://127.0.0.1:8080/JsonMangler#indexes%20Operator%20(Examples)> >> > > There are Examples in the new demo wiki as well. > > Download the source or *.zip over on GitHub: > > https://github.com/joshuafontany/TW5-JsonMangler > > Best, > Joshua Fontany > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev/ceab6363-019f-4bd7-94da-15302af1d8ea%40googlegroups.com.
