{"id":31826012,"url":"https://github.com/joshua-light/pocket.json","last_synced_at":"2026-05-16T11:04:06.712Z","repository":{"id":43779462,"uuid":"118361595","full_name":"joshua-light/pocket.json","owner":"joshua-light","description":"Simple JSON serialization/deserialization library.","archived":false,"fork":false,"pushed_at":"2022-07-07T17:42:58.000Z","size":225,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T16:52:09.882Z","etag":null,"topics":["csharp","json","serialization"],"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/joshua-light.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-01-21T18:25:49.000Z","updated_at":"2022-07-07T17:42:50.000Z","dependencies_parsed_at":"2022-08-29T13:42:01.649Z","dependency_job_id":null,"html_url":"https://github.com/joshua-light/pocket.json","commit_stats":null,"previous_names":["joshualight/pocket.json"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/joshua-light/pocket.json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshua-light%2Fpocket.json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshua-light%2Fpocket.json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshua-light%2Fpocket.json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshua-light%2Fpocket.json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshua-light","download_url":"https://codeload.github.com/joshua-light/pocket.json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshua-light%2Fpocket.json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007980,"owners_count":26084369,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["csharp","json","serialization"],"created_at":"2025-10-11T16:51:57.820Z","updated_at":"2025-10-11T16:52:13.930Z","avatar_url":"https://github.com/joshua-light.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pocket.Json\n\n![Build](https://github.com/JoshuaLight/pocket.json/workflows/Build/badge.svg)\n[![NuGet](https://img.shields.io/nuget/v/Pocket.Json.svg)](https://www.nuget.org/packages/Pocket.Json)\n\n\n_A simple JSON serialization/deserialization library that is pretty fast._\n\n_(It doesn't match 100% of JSON spec, and was made just for learning purposes.)_\n\n## Usage\n### Data Format\n```c#\n// Class should be `public`.\npublic class Point\n{\n    // Fields should be just `public`.\n    [Json] public int X;\n    [Json] public int Y;\n    \n    // A public parameterless constructor should be defined (either implicitly or explicitly).\n    public Point() { }\n}\n```\n\n### Serialize\n```c#\nvar json = new Point { X = 1, Y = 2 }.ToJson();\n```\n\n### Deserialize\n```c#\nvar point = json.FromJson\u003cPoint\u003e();\n```\n\n## Benchmarks\nCode for benchmarks can be found [here](https://github.com/JoshuaLight/Pocket.Json/blob/master/src/Benchmarks/Program.cs).\n```\nBenchmarkDotNet=v0.12.1, OS=elementary 5.1.5\nIntel Core i9-9900KF CPU 3.60GHz (Coffee Lake), 1 CPU, 16 logical and 8 physical cores\n.NET Core SDK=3.1.301\n  [Host]     : .NET Core 3.1.5 (CoreCLR 4.700.20.26901, CoreFX 4.700.20.27001), X64 RyuJIT\n  DefaultJob : .NET Core 3.1.5 (CoreCLR 4.700.20.26901, CoreFX 4.700.20.27001), X64 RyuJIT\n```\n\n### Serialization\n|         Method |      Mean |    Error |   StdDev |\n|--------------- |----------:|---------:|---------:|\n| NewtonsoftJson | 274.29 μs | 1.478 μs | 1.310 μs |\n|       Utf8Json |  99.78 μs | 0.537 μs | 0.476 μs |\n|     PocketJson | 108.07 μs | 0.434 μs | 0.362 μs |\n\n### Deserialization\n|         Method |      Mean |    Error |   StdDev |\n|--------------- |----------:|---------:|---------:|\n| NewtonsoftJson | 401.33 μs | 3.472 μs | 3.077 μs |\n|       Utf8Json | 130.03 μs | 1.492 μs | 1.395 μs |\n|     PocketJson |  79.60 μs | 0.286 μs | 0.267 μs |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshua-light%2Fpocket.json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshua-light%2Fpocket.json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshua-light%2Fpocket.json/lists"}