{"id":22338356,"url":"https://github.com/dimonovdd/msbuild.compactjsonresources","last_synced_at":"2026-04-30T18:31:13.658Z","repository":{"id":44860186,"uuid":"399899245","full_name":"dimonovdd/MSBuild.CompactJsonResources","owner":"dimonovdd","description":"Compact Json data by removing whitespaces before building","archived":false,"fork":false,"pushed_at":"2024-01-29T04:37:49.000Z","size":45,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-05T18:06:55.371Z","etag":null,"topics":["hacktoberfest","json","msbuild","msbuild-task"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimonovdd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-25T17:13:30.000Z","updated_at":"2024-01-29T04:56:38.000Z","dependencies_parsed_at":"2025-03-26T08:39:54.980Z","dependency_job_id":null,"html_url":"https://github.com/dimonovdd/MSBuild.CompactJsonResources","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dimonovdd/MSBuild.CompactJsonResources","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FMSBuild.CompactJsonResources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FMSBuild.CompactJsonResources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FMSBuild.CompactJsonResources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FMSBuild.CompactJsonResources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimonovdd","download_url":"https://codeload.github.com/dimonovdd/MSBuild.CompactJsonResources/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FMSBuild.CompactJsonResources/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["hacktoberfest","json","msbuild","msbuild-task"],"created_at":"2024-12-04T06:13:58.572Z","updated_at":"2026-04-30T18:31:13.653Z","avatar_url":"https://github.com/dimonovdd.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MSBuild.CompactJsonResources\n\n![header](https://raw.githubusercontent.com/dimonovdd/MSBuild.CompactJsonResources/main/header.svg)\n\n[![NuGet Badge](https://img.shields.io/nuget/vpre/MSBuild.CompactJsonResources)](https://www.nuget.org/packages/MSBuild.CompactJsonResources/) [![license](https://img.shields.io/github/license/dimonovdd/MSBuild.CompactJsonResources)](https://github.com/dimonovdd/MSBuild.CompactJsonResources/blob/main/LICENSE) [![fuget.org](https://www.fuget.org/packages/MSBuild.CompactJsonResources/badge.svg)](https://www.fuget.org/packages/MSBuild.CompactJsonResources)\n\nOften, Json files are added to a project as one line to reduce the size of the build. Such files are uncomfortable to read and track changes through version control systems. This package resolve this problem by removing whitespaces, trailing commas and comments from the builds without changing the beautiful Json source files by adding their single-line copies. It also checks Json files before building and warns about missing curly brace and etc.\n\n```json\n{\n  \"null\": null, //this is comment\n  \"number\": 123,\n  \"object\": {\n    \"a\": \"b\",\n    \"c\": \"d\",\n  },\n  \"string\": \"Hello World\",\n}\n```\n\n```json\n{\"null\":null,\"number\":123,\"object\":{\"a\":\"b\",\"c\":\"d\"},\"string\":\"Hello World\"}\n```\n\n## Getting started\n\n1) Add reference for this package.\n2) Set `EnableCompactJson` property to `true`. (When the value is `false` the files data are not changed)\n3) Just use `JsonEmbeddedResource` as `EmbeddedResource`.\n\n```xml\n\u003cPropertyGroup\u003e\n  \u003cEnableCompactJson\u003etrue\u003c/EnableCompactJson\u003e\n\u003c/PropertyGroup\u003e\n\u003cItemGroup\u003e\n  \u003cJsonEmbeddedResource Include=\"data.json\" /\u003e\n\u003c/ItemGroup\u003e\n\u003cItemGroup\u003e\n  \u003cPackageReference Include=\"MSBuild.CompactJsonResources\" Version=\"1.0.0\" PrivateAssets=\"all\"/\u003e\n\u003c/ItemGroup\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimonovdd%2Fmsbuild.compactjsonresources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimonovdd%2Fmsbuild.compactjsonresources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimonovdd%2Fmsbuild.compactjsonresources/lists"}