{"id":22423049,"url":"https://github.com/arakelian/java-jq","last_synced_at":"2026-04-02T14:56:17.014Z","repository":{"id":47003831,"uuid":"115957207","full_name":"arakelian/java-jq","owner":"arakelian","description":"Lightweight Java wrapper around JQ, a flexible JSON processor available for multiple platforms","archived":false,"fork":false,"pushed_at":"2024-04-30T01:17:39.000Z","size":3623,"stargazers_count":86,"open_issues_count":7,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-01T07:56:52.795Z","etag":null,"topics":["java","java-8","jq","json","processor","transformation"],"latest_commit_sha":null,"homepage":"","language":"Java","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/arakelian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"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,"zenodo":null}},"created_at":"2018-01-02T00:05:32.000Z","updated_at":"2025-06-23T09:50:12.000Z","dependencies_parsed_at":"2025-08-02T03:47:29.562Z","dependency_job_id":null,"html_url":"https://github.com/arakelian/java-jq","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/arakelian/java-jq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arakelian%2Fjava-jq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arakelian%2Fjava-jq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arakelian%2Fjava-jq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arakelian%2Fjava-jq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arakelian","download_url":"https://codeload.github.com/arakelian/java-jq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arakelian%2Fjava-jq/sbom","scorecard":{"id":204966,"data":{"date":"2025-08-11","repo":{"name":"github.com/arakelian/java-jq","commit":"e2ec113e89430025b48b4fcca748a309731a03e2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"Code-Review","score":1,"reason":"Found 3/28 approved changesets -- score normalized to 1","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":"Binary-Artifacts","score":5,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: src/main/resources/lib/darwin-aarch64/libjq.dylib:1","Warn: binary detected: src/main/resources/lib/darwin-x86_64/libjq.dylib:1","Warn: binary detected: src/main/resources/lib/linux-aarch64/libjq.so:1","Warn: binary detected: src/main/resources/lib/linux-x86_64/libjq.so:1"],"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":"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":"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"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/arakelian/java-jq/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/arakelian/java-jq/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/arakelian/java-jq/ci.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:3: pin your Docker image by updating ubuntu:14.04 to ubuntu:14.04@sha256:64483f3496c1373bfd55348e88694d1c4d0c9b660dee6bfef5e12f43b9933b30","Warn: containerImage not pinned by hash: Dockerfile.aarch64:1: pin your Docker image by updating debian:buster-slim to debian:buster-slim@sha256:bb3dc79fddbca7e8903248ab916bb775c96ec61014b3d02b4f06043b604726dc","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage 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":"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"}}]},"last_synced_at":"2025-08-16T23:31:58.433Z","repository_id":47003831,"created_at":"2025-08-16T23:31:58.433Z","updated_at":"2025-08-16T23:31:58.433Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["java","java-8","jq","json","processor","transformation"],"created_at":"2024-12-05T18:09:03.949Z","updated_at":"2026-04-02T14:56:16.998Z","avatar_url":"https://github.com/arakelian.png","language":"Java","readme":"# java-jq\n[![version](https://img.shields.io/maven-metadata/v.svg?label=release\u0026metadataUrl=https://repo1.maven.org/maven2/com/arakelian/java-jq/maven-metadata.xml)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.arakelian%22%20AND%20a%3A%22java-jq%22)\n[![CI](https://github.com/arakelian/java-jq/actions/workflows/ci.yml/badge.svg)](https://github.com/arakelian/java-jq/actions/workflows/ci.yml)\n\njava-jq is not a re-implementation of [jq](http://stedolan.github.io/jq/) in Java; instead, \nit embeds the necessary jq and Oniguruma native libraries in a jar file, and then uses \n[Java Native Access](https://github.com/java-native-access/jna) (JNA) to call the embedded \nlibraries in a Java-friendly way.\n\nThe distribution of java-jq includes native JQ 1.6 libraries for all major platforms (Mac, Windows and Linux), \nand includes a statically linked version of Oniguruma 5.9.6 to avoid any runtime compatibility issues.\n\njava-jq was heavily inspired by [jjq](https://github.com/bskaggs/jjq).\n\n\n## Usage\n\nUsing Java-JQ is very easy.\n\n\nFirst, let's get a reference to the Native JQ library. This class is a thread-safe singleton.\n\n```java\nJqLibrary library = ImmutableJqLibrary.of();\n```\n\nNow, let's create a JQ request. A \"request\" is an immutable bean that contains three basic elements: a reference\nto the JQ library we created above, the JSON input you want to transform, and the JQ filter expression that you\nwant to execute.\n\n```java\nfinal JqRequest request = ImmutableJqRequest.builder() //\n        .lib(library) //\n        .input(\"{\\\"a\\\":[1,2,3,4,5],\\\"b\\\":\\\"hello\\\"}\") //\n        .filter(\".\") //\n        .build();\n```\n\nAs a final step, let's execute the request.\n\n```java\nfinal JqResponse response = request.execute();\nif( response.hasErrors() ) {\n   // display errors in response.getErrors()\n} else {\n   System.out.println( \"JQ output: \" + response.getOutput());\n}\n```\n\n## Compatibility\n\nAs of version 1.1.0, java-jq successfully executes the complete [jq](http://stedolan.github.io/jq/) \ntest suite, including all tests in jq.test, onig.test, base64.test, and optional.test.\n\njava-jq supports modules as well. To use modules, include the directory paths where your modules\ncan be found with your JqRequest as follows: \n\n```java\nfinal JqRequest request = ImmutableJqRequest.builder() //\n        .lib(library) //\n        .input(\"your json goes here\") //\n        .filter(\".\") //\n        .addModulePath(new File(\"/some/modules/can/be/found/here\")) //\n        .addModulePath(new File(\"/other/modules/can/be/found/here\")) //\n        .build();\n```\n  \n\n## Installation\n\nThe library is available on [Maven Central](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.arakelian%22%20AND%20a%3A%22java-jq%22).\n\n### Maven\n\nAdd the following to your `pom.xml`:\n\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ecentral\u003c/id\u003e\n        \u003cname\u003eCentral Repository\u003c/name\u003e\n        \u003curl\u003ehttp://repo.maven.apache.org/maven2\u003c/url\u003e\n        \u003creleases\u003e\n            \u003cenabled\u003etrue\u003c/enabled\u003e\n        \u003c/releases\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n\n...\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.arakelian\u003c/groupId\u003e\n    \u003cartifactId\u003ejava-jq\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\nAdd the following to your `build.gradle`:\n\n```groovy\nrepositories {\n  mavenCentral()\n}\n\ndependencies {\n  testCompile 'com.arakelian:java-jq:2.0.0'\n}\n```\n\n## Licence\n\nApache Version 2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farakelian%2Fjava-jq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farakelian%2Fjava-jq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farakelian%2Fjava-jq/lists"}