Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.01 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.01 KB

JSONata.Net.Js

.Net implementation of JSONata query and transformation language (http://jsonata.org)

This is a C# wrapper over the jsonata-es5.min.js imported from jsonata-c repo by qlyoung. Which itself is a minimized/compiled version of original JSONata js files. It's current version is 1.8.3.

The wrapper uses Jint JS Engine for C#. Because this package does C#-JS interop, it's expected to be rather slow. I'm working on C#-native implementation of the engine.

Usage

using Jsonata.Net.Js;
...
JsonataEngine jsonata = new JsonataEngine();
...
string result = jsonata.Execute("$.a", "{\"a\": \"b\"}");
Debug.Assert(result == "\"b\"");