jsonata.net.native icon indicating copy to clipboard operation
jsonata.net.native copied to clipboard

# selector

Open Slicksim opened this issue 2 years ago • 3 comments

I have been looking at integrating this library and I'm loving the jsonata syntax and how easily you can accomplish transforms in json. Your library makes dealing with jsonata a breeze.

Just wrote a query that uses their # notation to get the positional index of an array, plugged it into a test console app and of course, hit the # operator is not supported, I knew I read something about it somewhere on your readme.md

Is this a feature you're looking at?

I'm trying to avoid shelling out to the cli to run the jsonata-cli if possible

Slicksim avatar Oct 17 '23 08:10 Slicksim

Well, yeah, # and @ operators are not supported in my port yet. And for now I have no ETA for these features (

Actually I have a hard time understanding those implementation in original jsonata-js, and therefore I haven't gathered enough courage and time to invent something for these.

mikhail-barg avatar Oct 17 '23 21:10 mikhail-barg

So for a workaround you may consider using Jsonata.Net.Js which is a (slow) wrapper over original jsonata-js code. Though the js code used in the package is a bit outdated.

While being slow, it should still be much faster than running cli tool via shell-execute

mikhail-barg avatar Oct 17 '23 21:10 mikhail-barg