{"id":16387468,"url":"https://github.com/mastilver/json7","last_synced_at":"2025-09-04T04:14:32.758Z","repository":{"id":57285585,"uuid":"65231859","full_name":"mastilver/json7","owner":"mastilver","description":null,"archived":false,"fork":false,"pushed_at":"2016-12-23T13:00:40.000Z","size":5,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T09:04:15.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mastilver.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":"2016-08-08T19:14:08.000Z","updated_at":"2016-08-09T03:29:42.000Z","dependencies_parsed_at":"2022-08-24T18:12:33.931Z","dependency_job_id":null,"html_url":"https://github.com/mastilver/json7","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/mastilver%2Fjson7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fjson7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fjson7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fjson7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mastilver","download_url":"https://codeload.github.com/mastilver/json7/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170087,"owners_count":19759145,"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-10-11T04:26:37.984Z","updated_at":"2025-02-22T12:16:06.637Z","avatar_url":"https://github.com/mastilver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json7 [![Build Status](https://travis-ci.org/mastilver/json7.svg?branch=master)](https://travis-ci.org/mastilver/json7) [![Coverage Status](https://coveralls.io/repos/github/mastilver/json7/badge.svg?branch=master)](https://coveralls.io/github/mastilver/json7?branch=master)\n\n\u003e A better alternative of JSON\n\n## Features\n\n- is JSON compatible\n- handle Dates\n\n## Install\n\n```\n$ npm install --save json7\n```\n\n\n## Usage\n\n```js\nimport json7 from 'json7';\n\nconst a = {\n    text: 'test',\n    date: new Date(2016, 7, 4),\n};\na['obj'] = a;\n\nconst json = json7.stringify(a);\nconst b = json7.parse(json);\n\nconsole.log(b === b.obj); // =\u003e true\nconsole.log(b);\n/* =\u003e {\n    text: 'test',\n    date: Thu Aug 04 2016 00:00:00 GMT+0100 (GMT Summer Time),\n    obj: {...}\n}\n*/  \n```\n\n\n## API\n\n### json7.stringify(object)\n\nReturns a string representing the inputted object.\n\n#### object\n\nType: `any`\n\n\n### json7.parse(string)\n\n#### string\n\nType: `String`\n\nThe json7 representation of an object.\n\n## License\n\nMIT © [Thomas Sileghem](http://mastilver.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastilver%2Fjson7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastilver%2Fjson7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastilver%2Fjson7/lists"}