mikhail-barg / jsonata.net.js

.Net implementation of JSONata query and transformation language (http://jsonata.org) based on original JS code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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\"");

About

.Net implementation of JSONata query and transformation language (http://jsonata.org) based on original JS code

License:MIT License


Languages

Language:C# 100.0%