{"id":22139680,"url":"https://github.com/mitchhentges/json-compose","last_synced_at":"2026-04-17T08:31:13.131Z","repository":{"id":57715397,"uuid":"65977076","full_name":"mitchhentges/json-compose","owner":"mitchhentges","description":"Map/List to JSON composer","archived":false,"fork":false,"pushed_at":"2017-02-24T19:43:51.000Z","size":11,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-07T11:45:45.700Z","etag":null,"topics":["converter","formatter","java","json","json-string"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/mitchhentges.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-18T07:54:33.000Z","updated_at":"2023-04-29T18:49:25.000Z","dependencies_parsed_at":"2022-09-03T07:02:20.082Z","dependency_job_id":null,"html_url":"https://github.com/mitchhentges/json-compose","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mitchhentges/json-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchhentges%2Fjson-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchhentges%2Fjson-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchhentges%2Fjson-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchhentges%2Fjson-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchhentges","download_url":"https://codeload.github.com/mitchhentges/json-compose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchhentges%2Fjson-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31921749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["converter","formatter","java","json","json-string"],"created_at":"2024-12-01T20:16:58.503Z","updated_at":"2026-04-17T08:31:13.099Z","avatar_url":"https://github.com/mitchhentges.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json Compose [![Build Status](https://travis-ci.org/mitchhentges/json-compose.svg?branch=master)](https://travis-ci.org/mitchhentges/json-compose)\n\nA tool to quickly compose Java maps and lists of primitives into JSON strings.\nFor parsing JSON strings, see [Json Parse](https://github.com/mitchhentges/json-parse/)\n\n## Usage\n\n```\nList\u003cObject\u003e list = Arrays.listOf(1, \"two\", null);\nMap\u003cString, Object\u003e map = new HashMap\u003c\u003e();\nmap.put(\"key\", \"value\");\n\nJsonCompose.compose(list); //[1,\\\"two\\\",null]\nJsonCompose.compose(map); //{\\\"key\\\":\\\"value\\\"}\n```\n\n## Getting the dependency\n\n**Maven**\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eca.fuzzlesoft\u003c/groupId\u003e\n    \u003cartifactId\u003ejson-compose\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**Gradle**\n```\ncompile 'ca.fuzzlesoft:json-compose:1.0.3'\n```\n\n## Features\n\n### Composes nested Java containers of primitives\n\nSo long as only primitives, `Map`s or `Collection`s are provided, any nested model can be composed into a JSON string.\n\n### Thread safe\n\nCall `JsonCompose` from as many different threads as you want, it will handle it like a champ.\n\n## FAQ\n\n* Like [Json-Parse](https://github.com/mitchhentges/json-parse), does this provide a \"path\" to composition errors?\n\nThat will be implemented in the future, but not yet\n\n## License\n[MIT License (Expat)](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchhentges%2Fjson-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchhentges%2Fjson-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchhentges%2Fjson-compose/lists"}