json-parser
A cli tool for lexical and syntactical analysis. It parses json files.
PyPI package
Features
- Lexical analysis --> tokenize json input character by character.
- Parser --> Builds python objects fro tokens.
- CLI Interface --> Validating json files from cli.
- Error messages with line numbers
- include support for comments also. ('//' and '/* any content */')
- Uploaded on pypi PyPI package
- No runtime dependencies required.
Installation
pip install json-parser-cli
How to use
use json-parser command to validate json files.
json-parser <file_name.json>
Learnings
How compiler works
- Lexer.py --> Convert text into tokens.
- Parser --> Convert tokens to data using recursive descent parsing.
Json features supported
- Objects, Arrays.
- Strings, Numbers, Booleans.
- Null, nested structures, etc.
- comments,
Release files for json-parser-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| json_parser_cli-0.1.2.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| json_parser_cli-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.8 kB
Release files / json_parser_cli-0.1.2.tar.gz
| Download URL | json_parser_cli-0.1.2.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1a079f0f565f3b8598f227ac811994fbf64ba5b74929dd102f143f99fc5aa6f
|
|
BLAKE2b-256 checksum How to use checksums |
dfb1e27eaccdd541f4fb35fb40ae6ede9e96206d89e6bc9300f035b4b781cec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / json_parser_cli-0.1.2-py3-none-any.whl
| Download URL | json_parser_cli-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f53c547c749563f4e634ebc34aafdf077d94df14924ce482908aa7f490368ef
|
|
BLAKE2b-256 checksum How to use checksums |
5e6917cfda00ef219684a8e293c12572e97985a7e32944d0bad422244dc08f7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|