We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://www.npmjs.com/package/jsonata
http://jsonata.org/
var jsonata = require("jsonata"); var data = { example: [ {value: 4}, {value: 7}, {value: 13} ] }; var expression = jsonata("$sum(example.value)"); var result = expression.evaluate(data); // returns 24
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JSONata test</title> <script src="https://cdn.jsdelivr.net/npm/jsonata/jsonata.min.js"></script> <script> function greeting() { var json = JSON.parse(document.getElementById('json').value); var result = jsonata('"Hello, " & name').evaluate(json); document.getElementById('greeting').innerHTML = result; } </script> </head> <body> <textarea id="json">{ "name": "Wilbur" }</textarea> <button onclick="greeting()">Click me</button> <p id="greeting"></p> </body> </html>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://www.npmjs.com/package/jsonata
http://jsonata.org/
The text was updated successfully, but these errors were encountered: