{"id":19594863,"url":"https://github.com/glebbatykov/jard","last_synced_at":"2026-05-16T03:09:55.237Z","repository":{"id":144674995,"uuid":"609333481","full_name":"GlebBatykov/jard","owner":"GlebBatykov","description":"Package for json encode and decode.","archived":false,"fork":false,"pushed_at":"2023-05-11T23:01:20.000Z","size":330,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:47:56.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","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/GlebBatykov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-03-03T22:14:23.000Z","updated_at":"2023-05-11T21:53:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"657f5ecf-4c85-496b-8c02-aec178c407d8","html_url":"https://github.com/GlebBatykov/jard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlebBatykov%2Fjard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlebBatykov%2Fjard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlebBatykov%2Fjard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlebBatykov%2Fjard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GlebBatykov","download_url":"https://codeload.github.com/GlebBatykov/jard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240867983,"owners_count":19870512,"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":[],"created_at":"2024-11-11T08:45:02.725Z","updated_at":"2026-05-16T03:09:55.212Z","avatar_url":"https://github.com/GlebBatykov.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![pub package](https://img.shields.io/pub/v/jard.svg?label=jard\u0026color=blue)](https://pub.dev/packages/jard)\n\n**Languages:**\n  \n[![English](https://img.shields.io/badge/Language-English-blue?style=?style=flat-square)](README.md)\n[![Russian](https://img.shields.io/badge/Language-Russian-blue?style=?style=flat-square)](README.ru.md)\n\n\u003c/div\u003e\n\n- [Using](#using)\n  - [Encode](#encode)\n  - [Decode](#decode)\n- [Performance](#performance)\n  - [Encode perfomance](#encode-perfomance)\n\n# Using\n\nThis package is used for encoding and decoding JSON.\n\nAt the moment, encoding has been implemented, faster than using `jsonEncode` from dart:convert.\n\n## Encode\n\nEncoding is available using the static `encode` method of the `Jard` class.\n\nUsage example:\n\n```dart\nimport 'package:jard/jard.dart';\n\nvoid main() {\n  final map = \u003cString, dynamic\u003e{\n    'name': 'Alex',\n    'age': 22,\n  };\n\n  final json = Jard.encode(map);\n\n  print(json);\n}\n```\n\nExpected output:\n\n```dart\n{\"name\":\"Alex\",\"age\":22}\n```\n\n## Decode\n\nUnder development.\n\n# Performance\n\n## Encode perfomance\n\nExecution time (microseconds) benchmark in JIT:\n\n\u003cimg src=\"https://raw.githubusercontent.com/GlebBatykov/jard/main/doc/images/time-jit.jpg\" width=\"1200px\"/\u003e\n\nExecution time (microseconds) benchmark in AOT:\n\n\u003cimg src=\"https://raw.githubusercontent.com/GlebBatykov/jard/main/doc/images/time-aot.jpg\" width=\"1200px\"/\u003e\n\nMemory costs do not differ, they are at the level of 1% error in various tests in the direction of Jard or dart:convert.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbatykov%2Fjard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglebbatykov%2Fjard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbatykov%2Fjard/lists"}