{"id":26631000,"url":"https://github.com/cheapnightbot/json-scanner","last_synced_at":"2026-05-04T06:34:30.430Z","repository":{"id":283224165,"uuid":"862744110","full_name":"CheapNightbot/json-scanner","owner":"CheapNightbot","description":"Hand-made scanner for JavaScript Object Notation (JSON). Just for FUN \u0026 LEARNING ~!","archived":false,"fork":false,"pushed_at":"2024-10-10T12:19:24.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T06:35:33.479Z","etag":null,"topics":["c","hand-made-scanner","json","lexical-parser","scanner"],"latest_commit_sha":null,"homepage":"","language":"C","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/CheapNightbot.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-25T05:53:48.000Z","updated_at":"2024-10-10T12:19:27.000Z","dependencies_parsed_at":"2025-03-19T06:48:40.650Z","dependency_job_id":null,"html_url":"https://github.com/CheapNightbot/json-scanner","commit_stats":null,"previous_names":["cheapnightbot/json-scanner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fjson-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fjson-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fjson-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fjson-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheapNightbot","download_url":"https://codeload.github.com/CheapNightbot/json-scanner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245291816,"owners_count":20591553,"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":["c","hand-made-scanner","json","lexical-parser","scanner"],"created_at":"2025-03-24T14:38:06.540Z","updated_at":"2026-05-04T06:34:30.378Z","avatar_url":"https://github.com/CheapNightbot.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cu\u003ejson-scanner\u003c/u\u003e ~ just as cheap as me...\n\nHand-made scanner for JavaScript Object Notation (**JSON**). Just for FUN \u0026 LEARNING ~!\n\n\u003cimg src=\"resources/scanner.svg\" alt=\"A Scanner\" /\u003e\n\n\u003e [!NOTE]\n\u003e There are lot of things to do. For example, it does NOT care about special character or escape squences inside the string and will identify them as an error.\n\n## ⟫ Example ?\n\nRunning this scanner on following test **JSON** file... :\n\n```json\n{\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"john.doe@web.com\",\n    \"age\": 17,\n    \"adult\": false,\n    \"favoriteColors: [\"Red\", \"Green\", \"Blue\"],\n    \"country\": null,\n    notValid: true\n}\n```\n\n... will print following output in the terminal:\n\n\u003cdetails\u003e\n\u003csummary\u003eCLICK TO VIEW\u003c/summary\u003e\n\n```bash\n\nTOKEN        |   LINE:CHAR   | TEXT\n-------------+---------------+-------------\nLBRACE       |      1:1      | {\n-------------+---------------+-------------\nSTRING_KEY   |      2:5      | \"firstName\"\n-------------+---------------+-------------\nCOLON        |      2:16     | :\n-------------+---------------+-------------\nSTRING_VALUE |      2:18     | \"John\"\n-------------+---------------+-------------\nCOMMA        |      2:24     | ,\n-------------+---------------+-------------\nSTRING_KEY   |      3:5      | \"lastName\"\n-------------+---------------+-------------\nCOLON        |      3:15     | :\n-------------+---------------+-------------\nSTRING_VALUE |      3:17     | \"Doe\"\n-------------+---------------+-------------\nCOMMA        |      3:22     | ,\n-------------+---------------+-------------\nSTRING_KEY   |      4:5      | \"email\"\n-------------+---------------+-------------\nCOLON        |      4:12     | :\n-------------+---------------+-------------\nSTRING_VALUE |      4:14     | \"john.doe@web.com\"\n-------------+---------------+-------------\nCOMMA        |      4:32     | ,\n-------------+---------------+-------------\nSTRING_KEY   |      5:5      | \"age\"\n-------------+---------------+-------------\nCOLON        |      5:10     | :\n-------------+---------------+-------------\nNUMBER       |      5:12     | 17\n-------------+---------------+-------------\nSTRING_KEY   |      6:5      | \"adult\"\n-------------+---------------+-------------\nCOLON        |      6:12     | :\n-------------+---------------+-------------\nFALSE        |      6:14     | false\n-------------+---------------+-------------\nCOMMA        |      6:19     | ,\n-------------+---------------+-------------\nERROR        |      7:20     | \"favoriteColors \u003c- Closing Quote is missing.\n-------------+---------------+-------------\nCOLON        |      7:20     | :\n-------------+---------------+-------------\nLBRACKET     |      7:22     | [\n-------------+---------------+-------------\nSTRING_VALUE |      7:23     | \"Red\"\n-------------+---------------+-------------\nCOMMA        |      7:28     | ,\n-------------+---------------+-------------\nSTRING_VALUE |      7:30     | \"Green\"\n-------------+---------------+-------------\nCOMMA        |      7:37     | ,\n-------------+---------------+-------------\nSTRING_VALUE |      7:39     | \"Blue\"\n-------------+---------------+-------------\nRBRACKET     |      7:45     | ]\n-------------+---------------+-------------\nCOMMA        |      7:46     | ,\n-------------+---------------+-------------\nSTRING_KEY   |      8:5      | \"country\"\n-------------+---------------+-------------\nCOLON        |      8:14     | :\n-------------+---------------+-------------\nNULL         |      8:16     | null\n-------------+---------------+-------------\nCOMMA        |      8:20     | ,\n-------------+---------------+-------------\nERROR        |      9:13     | notValid \u003c- Unknown or incomplete token.\n-------------+---------------+-------------\nCOLON        |      9:13     | :\n-------------+---------------+-------------\nTRUE         |      9:15     | true\n-------------+---------------+-------------\nRBRACE       |     10:1      | }\n-------------+---------------+-------------\n\n```\n\n\u003c/details\u003e\n\n## ⟫ Compile \u0026 Run\n\n- Make sure `make` is installed. Following command can be used for Debian based distros to install it:\n\n```bash\nsudo apt update \u0026\u0026 sudo apt install make\n```\n- Compile it with the following command:\n\n```bash\nmake sjson\n```\n- A new directory `build` will be created. `cd` into it and run `sjson` on any valid `.json` file:\n\n```bash\ncd build/\n./sjson test.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheapnightbot%2Fjson-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheapnightbot%2Fjson-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheapnightbot%2Fjson-scanner/lists"}