{"id":19972377,"url":"https://github.com/f2e-tools/json-stringify-format","last_synced_at":"2026-05-09T03:37:41.481Z","repository":{"id":57285316,"uuid":"219691601","full_name":"f2e-tools/json-stringify-format","owner":"f2e-tools","description":"npm package for formatting json stringify","archived":false,"fork":false,"pushed_at":"2023-03-03T08:59:33.000Z","size":142,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T21:09:22.930Z","etag":null,"topics":["formatter","json","npm-package","stringify"],"latest_commit_sha":null,"homepage":"","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/f2e-tools.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":"2019-11-05T08:14:05.000Z","updated_at":"2019-12-30T11:06:26.000Z","dependencies_parsed_at":"2024-11-13T06:00:31.613Z","dependency_job_id":null,"html_url":"https://github.com/f2e-tools/json-stringify-format","commit_stats":null,"previous_names":["allenchinese/json-stringify-format"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/f2e-tools/json-stringify-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2e-tools%2Fjson-stringify-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2e-tools%2Fjson-stringify-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2e-tools%2Fjson-stringify-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2e-tools%2Fjson-stringify-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f2e-tools","download_url":"https://codeload.github.com/f2e-tools/json-stringify-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2e-tools%2Fjson-stringify-format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746302,"owners_count":24813557,"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-08-23T02:00:09.327Z","response_time":69,"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":["formatter","json","npm-package","stringify"],"created_at":"2024-11-13T03:07:51.165Z","updated_at":"2026-05-09T03:37:36.462Z","avatar_url":"https://github.com/f2e-tools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-stringify-format\n\n[![npm version](https://img.shields.io/npm/v/json-stringify-format.svg?style=flat-square)](https://www.npmjs.org/package/json-stringify-format)\n\nUsed to format JSON strings\n\n## Feature\n\n- Format the JSON string\n\n## Browser Support\n\n```json\ntargets: {\n  \"edge\": \"17\",\n  \"firefox\": \"60\",\n  \"safari\": \"11.1\",\n  \"chrome\": \"58\",\n  \"ie\": \"11\"\n}\n```\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install json-stringify-format\n```\n\nUsing yarn:\n\n```bash\n$ yarn add json-stringify-format\n```\n\n## Example\n\n```js\nimport jsonFormat from 'json-stringify-format'\n\nconst originData = '{\"inline\":false,\"defaultValue\":0,\"showLabel\":false,\"options\":[{\"value\":0,\"label\":\"\\u5de6\"},{\"value\":1,\"label\":\"\\u53f3\"}],\"required\":false,\"width\":\"\",\"remote\":false,\"remoteOptions\":[],\"props\":{\"value\":\"value\",\"label\":\"label\"},\"remoteFunc\":\"\"}'\n\nprocessedData = jsonFormat(originData)\n\nconsole.log(processedData)\n\n{\n    \"inline\": false,\n    \"defaultValue\": 0,\n    \"showLabel\": false,\n    \"options\": [\n        {\n            \"value\": 0,\n            \"label\": \"左\"\n        },\n        {\n            \"value\": 1,\n            \"label\": \"右\"\n        }\n    ],\n    \"required\": false,\n    \"width\": \"\",\n    \"remote\": false,\n    \"remoteOptions\": [\n    ],\n    \"props\": {\n        \"value\": \"value\",\n        \"label\": \"label\"\n    },\n    \"remoteFunc\": \"\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff2e-tools%2Fjson-stringify-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff2e-tools%2Fjson-stringify-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff2e-tools%2Fjson-stringify-format/lists"}