{"id":23740219,"url":"https://github.com/mustaddon/json-date-fix","last_synced_at":"2026-01-03T18:33:19.535Z","repository":{"id":59145000,"uuid":"529909799","full_name":"mustaddon/json-date-fix","owner":"mustaddon","description":"JSON serialization/deserialization fix for Date objects","archived":false,"fork":false,"pushed_at":"2024-09-19T19:59:39.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-02T04:27:54.151Z","etag":null,"topics":["date-formatting","dateonly","datetime","javascript","json-deserialization","json-parse","json-parsing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mustaddon.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":"2022-08-28T16:00:32.000Z","updated_at":"2024-09-19T20:02:08.000Z","dependencies_parsed_at":"2022-09-13T02:12:59.384Z","dependency_job_id":null,"html_url":"https://github.com/mustaddon/json-date-fix","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/mustaddon%2Fjson-date-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustaddon%2Fjson-date-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustaddon%2Fjson-date-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustaddon%2Fjson-date-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mustaddon","download_url":"https://codeload.github.com/mustaddon/json-date-fix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231970943,"owners_count":18453930,"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":["date-formatting","dateonly","datetime","javascript","json-deserialization","json-parse","json-parsing"],"created_at":"2024-12-31T09:47:29.895Z","updated_at":"2026-01-03T18:33:19.490Z","avatar_url":"https://github.com/mustaddon.png","language":"JavaScript","readme":"# json-date-fix [![npm version](https://badge.fury.io/js/json-date-fix.svg)](https://www.npmjs.com/package/json-date-fix)\nJSON serialization/deserialization fix for Date objects\n\n\n```js\nimport 'json-date-fix' // need once at the root of your app\n\n\n// serialization fix: preserve timezone information\nconsole.log(JSON.stringify(new Date(2023, 5, 7)));\n\n// deserialization date-string to Date object\nconsole.log(JSON.parse('\"2023-06-07T00:00:00.000+03:00\"'));\n\n\n//// Console output:\n// \"2023-06-07T00:00:00.000+03:00\"\n// Wed Jun 07 2023 00:00:00 GMT+0300 (Moscow Standard Time)\n```\n\n\nExample with DateOnly format support\n```js\nimport jsonDateFix from './index.js'; \njsonDateFix({ dateonly: true });  // enable dateonly format ('yyyy-MM-dd') analysis \n\n\n// deserialization dateonly-string to Date object\nconsole.log(JSON.parse('\"2023-06-07\"'));\n\n//// Console output:\n// Wed Jun 07 2023 00:00:00 GMT+0300 (Moscow Standard Time)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustaddon%2Fjson-date-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmustaddon%2Fjson-date-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustaddon%2Fjson-date-fix/lists"}