{"id":22261366,"url":"https://github.com/adaptant-labs/jsonwrap","last_synced_at":"2026-04-26T20:31:49.525Z","repository":{"id":57551687,"uuid":"226103329","full_name":"adaptant-labs/jsonwrap","owner":"adaptant-labs","description":"A simple API and CLI app for JSON object nesting and HTTP endpoint forwarding","archived":false,"fork":false,"pushed_at":"2019-12-05T21:24:00.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T05:09:58.639Z","etag":null,"topics":["cli-app","golang-application","golang-library","golang-tools","http-requests","json","json-wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adaptant-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-05T13:00:44.000Z","updated_at":"2022-07-29T22:05:46.000Z","dependencies_parsed_at":"2022-09-20T12:44:31.005Z","dependency_job_id":null,"html_url":"https://github.com/adaptant-labs/jsonwrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adaptant-labs/jsonwrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fjsonwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fjsonwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fjsonwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fjsonwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adaptant-labs","download_url":"https://codeload.github.com/adaptant-labs/jsonwrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fjsonwrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: 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":["cli-app","golang-application","golang-library","golang-tools","http-requests","json","json-wrapper"],"created_at":"2024-12-03T09:12:34.613Z","updated_at":"2026-04-26T20:31:49.504Z","avatar_url":"https://github.com/adaptant-labs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSONWrap\n\n[![godoc](https://godoc.org/github.com/adaptant-labs/jsonwrap?status.svg)](http://godoc.org/github.com/adaptant-labs/jsonwrap)\n[![Build Status](https://travis-ci.com/adaptant-labs/jsonwrap.svg?branch=master)](https://travis-ci.com/adaptant-labs/jsonwrap)\n[![Go Report Card](https://goreportcard.com/badge/github.com/adaptant-labs/jsonwrap)](https://goreportcard.com/report/github.com/adaptant-labs/jsonwrap)\n\n`jsonwrap` provides a simple API for JSON object nesting in Go.\n\nA convenience CLI app implementing the API and capable of forwarding the wrapped JSON to a remote HTTP endpoint is\nalso provided.\n\n## CLI Quick Start\n\nUsing the default Consul service catalog as an example:\n\n```shell script\n$ curl -X GET localhost:8500/v1/catalog/services\n{\n    \"consul\": []\n}\n```\n\nThis can be nested under as many levels as needed, simply repeat the `--wrap` flag for each level:\n\n```shell script\n$ curl -s -X GET localhost:8500/v1/catalog/services | jsonwrap --wrap services --wrap consul\n{\n    \"consul\": {\n        \"services\": {\n            \"consul\": []\n        }\n    }\n}\n```\n\nThe wrapped output can, in turn, be forwarded to a remote HTTP endpoint:\n\n```shell script\n$ curl -s -X GET localhost:8500/v1/catalog/services | \\\n  jsonwrap --wrap services --wrap consul --method PUT --target http://localhost:8181/v1/data\n```\n\n## Usage\n\n```shell script\n$ jsonwrap --help\nNAME:\n   jsonwrap - CLI for JSON object nesting and HTTP forwarding\n\nUSAGE:\n    [global options] command [command options] \u003cJSON file\u003e\n\nVERSION:\n   0.0.1\n\nDESCRIPTION:\n   A convenience CLI tool for nesting JSON objects and forwarding the result to a remote HTTP endpoint\n\nAUTHOR:\n   Adaptant Labs \u003clabs@adaptant.io\u003e\n\nCOMMANDS:\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --target value  Target URL to forward wrapped JSON to\n   --method value  Forwarding method to use (default: \"POST\")\n   --wrap value    Name of object to nest under\n   --help, -h      show help\n   --version, -v   print the version\n\nCOPYRIGHT:\n   (c) 2019 Adaptant Solutions AG\n```\n\n## API Documentation\n\nOnline API documentation is provided through `godoc`, and can be accessed directly on the\n[package entry](https://godoc.org/github.com/adaptant-labs/jsonwrap) in the godoc package repository.\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/adaptant-labs/jsonwrap/issues\n\n## License\n\nLicensed under the terms of the Apache 2.0 license, the full version of which can be found in the\n[LICENSE](https://raw.githubusercontent.com/adaptant-labs/jsonwrap/master/LICENSE) file included in the\ndistribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptant-labs%2Fjsonwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadaptant-labs%2Fjsonwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptant-labs%2Fjsonwrap/lists"}