{"id":38767739,"url":"https://github.com/blues/jsonata-go","last_synced_at":"2026-01-17T12:01:44.831Z","repository":{"id":39421932,"uuid":"360584424","full_name":"blues/jsonata-go","owner":"blues","description":"Open Source Go version of JSONata","archived":false,"fork":false,"pushed_at":"2025-05-20T21:57:25.000Z","size":4723,"stargazers_count":78,"open_issues_count":14,"forks_count":30,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-12-26T17:50:41.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-22T16:27:20.000Z","updated_at":"2025-12-09T10:46:05.000Z","dependencies_parsed_at":"2024-06-18T14:10:43.641Z","dependency_job_id":"18a9cf4c-6d04-4c83-af84-8691ee3feea3","html_url":"https://github.com/blues/jsonata-go","commit_stats":{"total_commits":6,"total_committers":3,"mean_commits":2.0,"dds":"0.33333333333333337","last_synced_commit":"31e6058dd1f53d2ad86f85fc331cadc0631a624b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/blues/jsonata-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fjsonata-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fjsonata-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fjsonata-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fjsonata-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blues","download_url":"https://codeload.github.com/blues/jsonata-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fjsonata-go/sbom","scorecard":{"id":244864,"data":{"date":"2025-08-11","repo":{"name":"github.com/blues/jsonata-go","commit":"31e6058dd1f53d2ad86f85fc331cadc0631a624b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Code-Review","score":8,"reason":"Found 5/6 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/blues/jsonata-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/blues/jsonata-go/test.yml/main?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/test.yml:19","Warn: goCommand not pinned by hash: .github/workflows/test.yml:20","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T07:23:16.106Z","repository_id":39421932,"created_at":"2025-08-17T07:23:16.106Z","updated_at":"2025-08-17T07:23:16.106Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T12:01:44.166Z","updated_at":"2026-01-17T12:01:44.810Z","avatar_url":"https://github.com/blues.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSONata in Go\n\nPackage jsonata is a query and transformation language for JSON.\nIt's a Go port of the JavaScript library [JSONata](http://jsonata.org/).\n\nIt currently has feature parity with jsonata-js 1.5.4. As well as a most of the functions added in newer versions. You can see potentially missing functions by looking at the [jsonata-js changelog](https://github.com/jsonata-js/jsonata/blob/master/CHANGELOG.md).\n\n## Install\n\n    go get github.com/blues/jsonata-go\n\n## Usage\n\n```Go\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\n\tjsonata \"github.com/blues/jsonata-go\"\n)\n\nconst jsonString = `\n    {\n        \"orders\": [\n            {\"price\": 10, \"quantity\": 3},\n            {\"price\": 0.5, \"quantity\": 10},\n            {\"price\": 100, \"quantity\": 1}\n        ]\n    }\n`\n\nfunc main() {\n\n\tvar data interface{}\n\n\t// Decode JSON.\n\terr := json.Unmarshal([]byte(jsonString), \u0026data)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Create expression.\n\te := jsonata.MustCompile(\"$sum(orders.(price*quantity))\")\n\n\t// Evaluate.\n\tres, err := e.Eval(data)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(res)\n\t// Output: 135\n}\n```\n\n## JSONata Server\nA locally hosted version of [JSONata Exerciser](http://try.jsonata.org/)\nfor testing is [available here](https://github.com/blues/jsonata-go/jsonata-server).\n\n## JSONata tests\nA CLI tool for running jsonata-go against the [JSONata test suite](https://github.com/jsonata-js/jsonata/tree/master/test/test-suite) is [available here](./jsonata-test).\n\n\n\n## Contributing\n\nWe love issues, fixes, and pull requests from everyone. Please run the\nunit-tests, staticcheck, and goimports prior to submitting your PR. By participating in this project, you agree to abide by\nthe Blues Inc [code of conduct](https://blues.github.io/opensource/code-of-conduct).\n\nFor details on contributions we accept and the process for contributing, see our\n[contribution guide](CONTRIBUTING.md).\n\nIn addition to the Go unit tests there is also a test runner that will run against the jsonata-js test\nsuite in the [jsonata-test](./jsonata-test) directory. A number of these tests currently fail, but we're working towards feature parity with the jsonata-js reference implementation. Pull requests welcome!\n\nIf you would like to contribute to this library a good first issue would be to run the jsonata-test suite,\nand fix any of the tests not passing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblues%2Fjsonata-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblues%2Fjsonata-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblues%2Fjsonata-go/lists"}