{"id":25080830,"url":"https://github.com/nlighten-oss/json-transform","last_synced_at":"2025-04-15T06:15:15.207Z","repository":{"id":232158796,"uuid":"783201433","full_name":"nlighten-oss/json-transform","owner":"nlighten-oss","description":"JSON transformation library","archived":false,"fork":false,"pushed_at":"2025-03-29T12:49:28.000Z","size":1556,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T06:15:06.239Z","etag":null,"topics":["jolt","jq","json","json-transformation"],"latest_commit_sha":null,"homepage":"https://nlighten-oss.github.io/json-transform/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlighten-oss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-07T08:08:36.000Z","updated_at":"2025-03-29T12:49:31.000Z","dependencies_parsed_at":"2024-04-21T09:37:39.700Z","dependency_job_id":"b4d8b696-b003-4648-a81b-62d610209446","html_url":"https://github.com/nlighten-oss/json-transform","commit_stats":null,"previous_names":["nlighten-oss/json-transform-core","nlighten-oss/json-transform"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlighten-oss%2Fjson-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlighten-oss%2Fjson-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlighten-oss%2Fjson-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlighten-oss%2Fjson-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlighten-oss","download_url":"https://codeload.github.com/nlighten-oss/json-transform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016641,"owners_count":21198833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["jolt","jq","json","json-transformation"],"created_at":"2025-02-07T04:26:42.933Z","updated_at":"2025-04-15T06:15:15.202Z","avatar_url":"https://github.com/nlighten-oss.png","language":"TypeScript","readme":"# json-transform\n\n- [Documentation](https://nlighten-oss.github.io/json-transform/)\n\n## Packages\n\n| Language   |Name| Description                                             |License|Status|\n|------------|---|---------------------------------------------------------|---|---|\n| Java       |[co.nlighten.json-transform](./java/json-transform)| Java library for transforming JSON objects              |Apache License 2.0|![Maven Central Version](https://img.shields.io/maven-central/v/co.nlighten/json-transform)|\n| JavaScript |[@nlighten/json-transform](./javascript/json-transform)| JSON transformers JavaScript implementation|MIT|![npm](https://img.shields.io/npm/v/@nlighten/json-transform)|\n| JavaScript |[@nlighten/json-transform-core](./javascript/json-transform-core)| Core types and utilities for handling JSON transformers |MIT|![npm](https://img.shields.io/npm/v/@nlighten/json-transform-core)|\n| JavaScript |[@nlighten/monaco-json-transform](./javascript/monaco-json-transform)| Monaco editor extension for JSON transformers |MIT|![npm](https://img.shields.io/npm/v/@nlighten/monaco-json-transform)|\n\n## Getting Started\n\n### Java\n\n- In your application initialization code set the JsonTransformerConfiguration with your preferred provider:\n\n```java\n\tpublic static void main(String[] args) {\n        JsonTransformerConfiguration.set(new GsonJsonTransformerConfiguration());\n        // ...\n    }\n```\n\n- See available adapters [here](https://github.com/nlighten-oss/json-transform/tree/main/java/json-transform/src/main/java/co/nlighten/jsontransform/adapters)\n\nThen in the code where you want to transform JSON objects:\n\n```java\n    // 'definition' is a JSON (in your selected provider's structure) \n    // defining the spec of the transformer    \n    JsonTransformer transformer = new JsonTransformer(definition);\n    // 'input' - The input of the transformer (referred as '$')\n    // 'additionalContext' - (optional) Map of additional inputs to refer during transformation \n    Object transformed = transformer.transform(input, additionalContext);\n```\n\n### JavaScript\n\n```js\n    // 'definition' is the spec of the transformer    \n    const transformer = new JsonTransformer(definition);\n    // 'input' - The input of the transformer (referred as '$')\n    // 'additionalContext' - (optional) Map of additional inputs to refer during transformation \n    const result = await transformer.transform(input, additionalContext);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlighten-oss%2Fjson-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlighten-oss%2Fjson-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlighten-oss%2Fjson-transform/lists"}