jsonset
operator’s documentation is mostly understandable, but there are some minor inconsistencies and areas for improvement. In particular:
- The summary table speaks of JSON strings, not objects, as input and output. It is not specified what happens in case of multiple objects at input.
- The parameter is described as “one or more indexes of the property to retrieve and sometimes a value to assign”, the last part I marked in italics is quite confusing imo.
- The examples should be in a separate tiddler.
- I think the examples should use the dedicated
.operator-example
docs macro, not thefilter --> result
syntax like[<jsondata>jsonset[d],[Jaguar]] --> {"a": "one","b": "","c": "three","d": "Jaguar"}
.
I would go ahead and improve it myself, but
- I don’t want to intrude if someone is still working on the operator itself or the docs.
- I’m not sure how to contribute to prerelease docs, that is how to locate the right file on GH (the link from pink ribbon redirects to a not-yet-existing file in editions/tw5.com) and which branch to contribute to.