{"id":16934231,"url":"https://github.com/anteru/sjson","last_synced_at":"2026-03-05T20:20:23.253Z","repository":{"id":80398370,"uuid":"134078954","full_name":"Anteru/sjson","owner":"Anteru","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-04T12:03:15.000Z","size":158,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T14:44:46.289Z","etag":null,"topics":["python","sjson"],"latest_commit_sha":null,"homepage":"https://shelter13.net/projects/SJSON/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anteru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-05-19T16:27:57.000Z","updated_at":"2024-09-04T12:03:19.000Z","dependencies_parsed_at":"2024-09-05T12:51:42.051Z","dependency_job_id":"57bd7384-bfd7-4cc5-b9fd-6ee886153e73","html_url":"https://github.com/Anteru/sjson","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anteru%2Fsjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anteru%2Fsjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anteru%2Fsjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anteru%2Fsjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anteru","download_url":"https://codeload.github.com/Anteru/sjson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248130385,"owners_count":21052738,"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":["python","sjson"],"created_at":"2024-10-13T20:51:36.827Z","updated_at":"2026-03-05T20:20:18.197Z","avatar_url":"https://github.com/Anteru.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SJSON\n=====\n\n**SJSON** is a small library to read/write simplified JSON, as described originally on the [Bitsquid blog](http://bitsquid.blogspot.de/2009/10/simplified-json-notation.html).\n\nLicense\n-------\n\n**SJSON** is licensed under the two-clause BSD license. See `LICENSE.txt` for details.\n\nSJSON format\n------------\n\nSJSON is very similar to normal JSON (in fact, since release 1.2.0, the SJSON library will also load plain JSON). It mostly reduces the required markup a bit. The main differences are:\n\n* Every file starts with an implicit object. That is, an empty SJSON file is equivalent to a JSON file containing `{}`.\n* Commas after a key-value pair are optional.\n* Keys don't have to be quoted as long as they are valid identifiers. An identifier consists of letters, digits, and `_`.\n* `=` is allowed in addition to `:` for key-value separation. The canonical separator is `=`.\n* C and C++ style comments are allowed.\n\nIn addition, this library provides support for raw string literals.\n\nExample\n-------\n\nJSON:\n\n    {\n        \"foo\" : 23,\n        \"bar\" : [1, 2, 3],\n        \"baz\" : {\n            \"key\" : \"value\"\n        }\n    }\n\nSJSON:\n\n    foo = 23\n    bar = [1, 2, 3]\n    baz = {\n        // SJSON also allows for comments\n        key = \"value\"\n    }\n\nAs an extension, SJSON allows for raw string literals, in both Lua and Python flavors:\n\n    foo = [=[This is a raw literal with embedded \" and stuff]=]\n\n    foo = \"\"\"This is a raw literal with embedded \" and stuff\"\"\"\n\nUsage\n-----\n\nThe library provides four methods, similar to the Python JSON module. These are:\n\n* `dump`: Encode an object as SJSON and write to a stream.\n* `dumps`: Encode an object as SJSON and return a string.\n* `load`: Decode a SJSON encoded object from a stream.\n* `loads`: Decode a SJSON encoded object from a string.\n\nChangelog\n---------\n\n### 2.2\n\n* Bump minimum Python to 3.12.\n* Add type information.\n* Various internal cleanups \u0026 refactorings.\n\n### 2.1.1\n\n* Packaging changes only. Raised supported Python version to Python 3.12\n\n### 2.1\n\n* Add support for Python-style raw strings, delimited by `\"\"\"`.\n* Improve handling of unknown string escapes. Previously, those would raise an exception, now they get passed through.\n\n### 2.0.3\n\n* Re-release of 2.0.2.\n\n### 2.0.2\n\n* Packaging changes only. This release contains packaging changes only and has not been released to the public, use 2.0.3 instead.\n\n### 2.0.1\n\n* Add `dump` in addition to `dumps` for consistency with the Python JSON module.\n* Additional PEP8 conformance tweaks.\n\n### 2.0.0\n\n* The library is now PEP8 compliant. This should *not* affect most users of this library, the only user-visible change is that `ParseException.GetLocation` has been renamed to `get_location`. The core functions have not been renamed and are API compatible.\n\n### 1.2.0\n\n* Keys did not get quoted properly during encoding if they contained special characters.\n* List elements were incorrectly indented.\n* List indentation now accepts either a string or a number (similar to the Python JSON module.)\n* Both `:` and `=` are now supported as key-value separators, allowing the SJSON library to parse plain JSON files.\n\n### 1.1.1\n\n* Add support for C/C++ style comments.\n* Line/column numbers start at 1 now (previously, the first character was in line 0, column 0).\n\n### 1.1.0\n\n* Parsing performance has been significantly improved.\n* It is possible to parse a file-like stream or string now.\n\n### 1.0.4\n\n* Track position during parsing. This will likely reduce the performance a bit, but allows for much better error messages.\n* Input is byte-oriented now.\n\n### 1.0.3\n\n* Add support for raw string literals. These are delimited by `[=[` `]=]` and don't require escaping inside the string.\n\n### 1.0.2\n\n* Strings with whitespace are now properly escaped.\n\n### 1.0.1\n\n* Various fixes to string encoding/decoding bugs.\n* Encoding now uses `collections.abc` to identify sequences and mappings instead of testing directly against `list` and `dict`.\n\n### 1.0.0\n\nInitial PyPI release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanteru%2Fsjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanteru%2Fsjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanteru%2Fsjson/lists"}