{"id":13581831,"url":"https://github.com/fgeller/jsonify","last_synced_at":"2025-06-12T10:11:48.891Z","repository":{"id":141461831,"uuid":"53846777","full_name":"fgeller/jsonify","owner":"fgeller","description":"cli app to create JSON objects","archived":false,"fork":false,"pushed_at":"2022-03-03T06:54:28.000Z","size":9,"stargazers_count":26,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T10:43:03.534Z","etag":null,"topics":["cli","go","golang","json"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fgeller.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":"2016-03-14T10:22:23.000Z","updated_at":"2023-09-11T11:52:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"bac8a614-1d74-4fd7-a3e0-31f4bc992587","html_url":"https://github.com/fgeller/jsonify","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fgeller/jsonify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fjsonify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fjsonify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fjsonify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fjsonify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgeller","download_url":"https://codeload.github.com/fgeller/jsonify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fjsonify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259444983,"owners_count":22858553,"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":["cli","go","golang","json"],"created_at":"2024-08-01T15:02:15.956Z","updated_at":"2025-06-12T10:11:48.860Z","avatar_url":"https://github.com/fgeller.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# jsonify\n\nSome reasons why you might be interested:\n\n* Quickly produce JSON output based on command line arguments\n* Simple syntax to interpret values as strings or arbitrary JSON values\n* Supports reading file contents for easy escaping\n\n## Installation\n\n* Downloads are available from the [Releases](https://github.com/fgeller/jsonify/releases) section.\n* `go get github.com/fgeller/jsonify \u0026\u0026 go install github.com/fgeller/jsonify`\n* Via homebrew on OSX: `brew tap fgeller/tap \u0026\u0026 brew install jsonify`\n\n## Usage\n\n    jsonify [[-|=]name value]...\n\nConverts arguments into JSON output.\n\n## Details\n\n* `-name` causes the value to be interpreted as a string.\n* `=name` causes the value to be interpreted as a JSON value.\n* If the value is a valid file path, it's contents are used as the value.\n\n## Examples\n\n    $ # basic value types, ie - vs =\n    $ jsonify -name hans =age 23 =subscribed true =address null | jq\n    {\n      \"address\": null,\n      \"age\": 23,\n      \"name\": \"hans\",\n      \"subscribed\": true\n    }\n\n    $ # nested objects via command substitution\n    $ jsonify =a `jsonify -name hans` =b `jsonify -name peter` | tee outfile | jq\n    {\n      \"a\": {\n        \"name\": \"hans\"\n      },\n      \"b\": {\n        \"name\": \"peter\"\n      }\n    }\n\n    $ # subshell output as a value to get current date\n    $ # reading contents of \"outfile\" from previous invocation\n    $ jsonify -date \"$(date)\" =content outfile | jq\n    {\n      \"content\": {\n        \"a\": {\n          \"name\": \"hans\"\n        },\n        \"b\": {\n          \"name\": \"peter\"\n        }\n      },\n      \"date\": \"Thu Mar 17 19:10:04 NZDT 2016\"\n    }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgeller%2Fjsonify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgeller%2Fjsonify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgeller%2Fjsonify/lists"}