[twdev] Re: Prototype: extensible attribute modules

2017-12-28 Thread Evan Balster
Added a "refreshAttributes(changedTiddlers)" function to the PR and fixed a few bugs in the initial implementation. On Wednesday, 27 December 2017 13:03:29 UTC-6, Evan Balster wrote: > > Opened a pull request: https://github.com/Jermolene/TiddlyWiki5/pull/3072 > > I expect there will be some

Re: [twdev] Re: [TW5] Accessing JSON tiddler data

2017-12-28 Thread Joshua Fontany
Yup, that is exactly the rabbit hole that led me back to examining the core json parser. I like the pointer syntax much better, it will also simplify pushing json key:value pairs to and from tiddlers as field:value pairs. I will only have to replace the '/' char with a legal field-name char

Re: [twdev] Re: [TW5] Accessing JSON tiddler data

2017-12-28 Thread Evan Balster
For my part, I suspect that the use of brackets in JSON path and company would prevent the syntax from being usable in filter expressions. The filter-parser will interpret the first right-bracket as closing the operand. On Thursday, 28 December 2017 16:56:13 UTC-6, Joshua Fontany wrote: > >

Re: [twdev] Re: [TW5] Accessing JSON tiddler data

2017-12-28 Thread Joshua Fontany
Oooh. Thanks for that. I have also been considering JsonPath syntax ( http://goessner.net/articles/JsonPath/) and this library: https://www.npmjs.com/package/jsonpath I will have to compare them. Best, Joshua Fontany On Thu, Dec 28, 2017 at 1:59 PM, Evan Balster wrote:

[twdev] Re: [TW5] Accessing JSON tiddler data

2017-12-28 Thread Evan Balster
I strongly recommend riding the coat-tails of an existing convention for something like this. Specifically, JSON Pointer (RFC 6901) should fit the bill. It uses a slash delimiter. Here is a widely-used JavaScript library providing some utility

[twdev] Re: [TW5] Accessing JSON tiddler data

2017-12-28 Thread Joshua Fontany
That is also the direction I was leaning (text-references and the getindex[] filter). Mahalo (thanks) Evan! Definitely gives me a good place to start. Now to think about path syntax Best, Joshua Fontany On Wednesday, December 27, 2017 at 7:17:55 PM UTC-8, Evan Balster wrote: > > I have to