{"id":15696454,"url":"https://github.com/ops-gaurav/json-serializer-deserializer","last_synced_at":"2026-07-22T06:36:38.895Z","repository":{"id":139331970,"uuid":"92772367","full_name":"ops-gaurav/json-serializer-deserializer","owner":"ops-gaurav","description":"Reading Writing JSON config files made easy","archived":false,"fork":false,"pushed_at":"2017-06-01T19:21:03.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T00:30:30.163Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ops-gaurav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-05-29T20:16:35.000Z","updated_at":"2019-01-31T09:33:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"eef57945-f7bc-4315-ab82-7aec5c8922aa","html_url":"https://github.com/ops-gaurav/json-serializer-deserializer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ops-gaurav/json-serializer-deserializer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ops-gaurav%2Fjson-serializer-deserializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ops-gaurav%2Fjson-serializer-deserializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ops-gaurav%2Fjson-serializer-deserializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ops-gaurav%2Fjson-serializer-deserializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ops-gaurav","download_url":"https://codeload.github.com/ops-gaurav/json-serializer-deserializer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ops-gaurav%2Fjson-serializer-deserializer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35751644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"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":[],"created_at":"2024-10-03T19:09:05.090Z","updated_at":"2026-07-22T06:36:38.875Z","avatar_url":"https://github.com/ops-gaurav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Serializer Deserialize\n\n\u003ci\u003eJSON serializer deserialize\u003c/i\u003e makes the Read/Write operations on the JSON files easily. The applications employing the config files in JSON could utilize this plugin by simply importing the module and avoiding interating with the `fs` module. Focus only on reading, updating and saving the JSON. \n\n\u003e Now support for typescript. prior updates to 1.0.2\n\n## Installation\n1. Run the following command to install\u003cbr/\u003e`npm install json-serialize-deserialize`.\n\n\n## Usage and snippets\n    var jsonSerializer = require('json-serialize-deserialize');\n\tjsonSerializer.readFile ('path.to.config.json')\n\t\t.then ((fileData) =\u003e {\n\t\t\t// do something with the filedata\n\n\t\t\tfileData.revenue = 9809;\n\n\t\t\tjsonSerializer.writeFile ('path.to.config.json')\n\t\t\t\t.then ((val) =\u003e {\n\t\t\t\t\tconsole.log ('write success')\n\t\t\t\t}).catch ((err) =\u003e {\n\t\t\t\t\tconsole.error (err);\n\t\t\t\t})\n\t\t}).catch ((err) =\u003e {\n\t\t\tconsole.error (err);\n\t\t});","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fops-gaurav%2Fjson-serializer-deserializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fops-gaurav%2Fjson-serializer-deserializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fops-gaurav%2Fjson-serializer-deserializer/lists"}