Gathering detailed insights and metrics for jsonata
Gathering detailed insights and metrics for jsonata
Gathering detailed insights and metrics for jsonata
Gathering detailed insights and metrics for jsonata
@stedi/prettier-plugin-jsonata
Prettier plugin for JSONata language
@types/jsonata
Stub TypeScript definitions entry for jsonata, which provides its own types definitions
jsonata-ui-core
Core AST and serializers for jsonata-ui
jsonata-visual-editor
Visual editor for JSONata expressions. Themeable to your needs, default theme is Boostrap 4
JSONata query and transformation language - http://jsonata.org
npm install jsonata
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.9
Supply Chain
91.3
Quality
76.8
Maintenance
100
Vulnerability
100
License
2.0.6 Maintenance Release
Updated on Nov 29, 2024
2.0.5 Maintenance Release
Updated on May 09, 2024
1.8.7 Maintenance Release
Updated on Mar 01, 2024
2.0.4 Maintenance Release
Updated on Feb 29, 2024
2.0.3 Maintenance Release
Updated on Apr 18, 2023
2.0.2 Maintenance Release
Updated on Feb 21, 2023
JavaScript (99.63%)
CSS (0.27%)
HTML (0.1%)
Total Downloads
98,481,843
Last Day
31,022
Last Week
527,335
Last Month
2,327,035
Last Year
23,775,837
MIT License
2,304 Stars
398 Commits
240 Forks
34 Watchers
7 Branches
50 Contributors
Updated on Jun 04, 2025
Minified
Minified + Gzipped
Latest Version
2.0.6
Package Id
jsonata@2.0.6
Unpacked Size
841.57 kB
Size
183.09 kB
File Count
8
NPM Version
10.9.0
Node Version
22.11.0
Published on
Nov 29, 2024
Cumulative downloads
Total Downloads
Last Day
-5.2%
31,022
Compared to previous day
Last Week
-8.4%
527,335
Compared to previous week
Last Month
5.3%
2,327,035
Compared to previous month
Last Year
37.4%
23,775,837
Compared to previous year
JSON query and transformation language
Reference implementation of the JSONata query and transformation language.
npm install jsonata
In Node.js:
1const jsonata = require('jsonata'); 2 3const data = { 4 example: [ 5 {value: 4}, 6 {value: 7}, 7 {value: 13} 8 ] 9}; 10 11(async () => { 12 const expression = jsonata('$sum(example.value)'); 13 const result = await expression.evaluate(data); // returns 24 14})()
In a browser:
1<!DOCTYPE html> 2<html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>JSONata test</title> 6 <script src="https://cdn.jsdelivr.net/npm/jsonata/jsonata.min.js"></script> 7 <script> 8 async function greeting() { 9 var json = JSON.parse(document.getElementById('json').value); 10 var result = await jsonata('"Hello, " & name').evaluate(json); 11 document.getElementById('greeting').innerHTML = result; 12 } 13 </script> 14 </head> 15 <body> 16 <textarea id="json">{ "name": "Wilbur" }</textarea> 17 <button onclick="greeting()">Click me</button> 18 <p id="greeting"></p> 19 </body> 20</html>
See the CONTRIBUTING.md for details of how to contribute to this repo.
9.8/10
Summary
JSONata expression can pollute the "Object" prototype
Affected Versions
>= 2.0.0, < 2.0.4
Patched Versions
2.0.4
9.8/10
Summary
JSONata expression can pollute the "Object" prototype
Affected Versions
>= 1.4.0, < 1.8.7
Patched Versions
1.8.7
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
1 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-26
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More