{"id":15285992,"url":"https://github.com/thinkalexandria/elm-pretty-print-json","last_synced_at":"2025-04-13T03:07:50.762Z","repository":{"id":52693071,"uuid":"132916231","full_name":"ThinkAlexandria/elm-pretty-print-json","owner":"ThinkAlexandria","description":"Pretty print JSON with nesting indents into a String","archived":false,"fork":false,"pushed_at":"2021-04-20T20:53:54.000Z","size":4,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T03:07:45.830Z","etag":null,"topics":["elm-lang","json","pretty-print"],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThinkAlexandria.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":"2018-05-10T15:01:31.000Z","updated_at":"2019-06-23T18:42:45.000Z","dependencies_parsed_at":"2022-08-22T04:01:43.037Z","dependency_job_id":null,"html_url":"https://github.com/ThinkAlexandria/elm-pretty-print-json","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkAlexandria%2Felm-pretty-print-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkAlexandria%2Felm-pretty-print-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkAlexandria%2Felm-pretty-print-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkAlexandria%2Felm-pretty-print-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThinkAlexandria","download_url":"https://codeload.github.com/ThinkAlexandria/elm-pretty-print-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657918,"owners_count":21140846,"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":["elm-lang","json","pretty-print"],"created_at":"2024-09-30T15:09:05.115Z","updated_at":"2025-04-13T03:07:50.741Z","avatar_url":"https://github.com/ThinkAlexandria.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-pretty-print-json\n\nPretty print JSON encoded as a String or as `Json.Encode.Value` with nesting\nindents.\n\nUseful for implementing JSON editors, where you want to format the JSON before\ninitializing a `\u003ctextarea\u003e`\n\n## Example\nTake a string containing JSON and format it with 4 space indents.\n```elm\njson = \"\"\"{\"name\": \"Arnold\", \"age\": 70, \"isStrong\": true,\"knownWeakness\": null,\"nicknames\": [\"Terminator\", \"The Governator\"],\"extra\": {\"foo\": \"bar\",\"zap\": {\"cat\": 1,\"dog\": 2},\"transport\": [[ \"ford\", \"chevy\" ],[ \"TGV\", \"bullet train\", \"steam\" ]]}}\"\"\"\n\nindent = 4\n\nResult.withDefault \"\" (Json.Print.prettyString indent json)\n{-\n{\n    \"extra\": {\n        \"transport\": [\n            [\n                \"ford\",\n                \"chevy\"\n            ],\n            [\n                \"TGV\",\n                \"bullet train\",\n                \"steam\"\n            ]\n        ],\n        \"zap\": {\n            \"dog\": 2,\n            \"cat\": 1\n        },\n        \"foo\": \"bar\"\n    },\n    \"nicknames\": [\n        \"Terminator\",\n        \"The Governator\"\n    ],\n    \"knownWeakness\": null,\n    \"isStrong\": true,\n    \"age\": 70,\n    \"name\": \"Arnold\"\n}\n-}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkalexandria%2Felm-pretty-print-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkalexandria%2Felm-pretty-print-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkalexandria%2Felm-pretty-print-json/lists"}