{"id":17598060,"url":"https://github.com/potch/jsob","last_synced_at":"2025-07-07T02:33:26.187Z","repository":{"id":34448163,"uuid":"179162084","full_name":"potch/JSOB","owner":"potch","description":"It's like if JSON was actually JS object notation instead of what it is?","archived":false,"fork":false,"pushed_at":"2022-12-08T20:46:16.000Z","size":462,"stargazers_count":8,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T09:45:00.746Z","etag":null,"topics":[],"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/potch.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}},"created_at":"2019-04-02T21:33:10.000Z","updated_at":"2020-09-07T02:23:44.000Z","dependencies_parsed_at":"2023-01-15T07:07:45.419Z","dependency_job_id":null,"html_url":"https://github.com/potch/JSOB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/potch/JSOB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2FJSOB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2FJSOB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2FJSOB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2FJSOB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/potch","download_url":"https://codeload.github.com/potch/JSOB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2FJSOB/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264002069,"owners_count":23542367,"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-22T09:44:20.631Z","updated_at":"2025-07-07T02:33:26.147Z","avatar_url":"https://github.com/potch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSOB - JavaScript OBject literal notation\n\n[![jsob on npm](https://img.shields.io/npm/v/jsob.svg)](https://www.npmjs.com/package/jsob)\n\nLike JSON, but a bit less of a pain. Uses an actual JS parser ([acorn](https://github.com/acornjs/acorn)) to read object literal syntax (including comments!), *without* running the code. Only supports JSON-compatible types (numbers, boolean, strings, objects, and arrays). No need to worry about quoting keys and all that junk. If it's valid JS, it should be valid JSOB!\n\n[📦 JSOB package](https://www.npmjs.com/package/jsob)\n\n**This project is not particularly well tested, so maybe don't use it in prod!**\n\nHere's some JSOB:\n\n```js\n{\n  msg: 'hello!',\n  'quotes': \"optional but fine!\",\n  // this is a comment!! wowww\n  'multiline support': `\n    Yup! You can't use tags or substitutions,\n    but otherwise go for it.\n  `,\n  // why not have a trailing comma while we're at it?\n  last: 'property',\n}\n```\n\n## Usage\n\n```js\nconst JSOB = require('JSOB');\n\nlet obj = JSOB.parse(`{\n  msg: 'hello!',\n}`);\n```\n\n## TODO\n\n* much, much bigger test suite\n* non-JSON serialization with options\n* self-contained parser- we don't technically need a *whole* JS parser so this could be a much smaller package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotch%2Fjsob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotch%2Fjsob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotch%2Fjsob/lists"}