Skip to main content

A JSON parser CLI tool

Project description

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

  1. Lexer.py --> Convert text into tokens.
  2. Parser --> Convert tokens to data using recursive descent parsing.

Json features supported

  • Objects, Arrays.
  • Strings, Numbers, Booleans.
  • Null, nested structures, etc.
  • comments,

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

json_parser_cli-0.1.2.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json_parser_cli-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file json_parser_cli-0.1.2.tar.gz.

File metadata

  • Download URL: json_parser_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for json_parser_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b1a079f0f565f3b8598f227ac811994fbf64ba5b74929dd102f143f99fc5aa6f
MD5 e0601620504c1a5bd4510e09fd03910a
BLAKE2b-256 dfb1e27eaccdd541f4fb35fb40ae6ede9e96206d89e6bc9300f035b4b781cec5

See more details on using hashes here.

File details

Details for the file json_parser_cli-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for json_parser_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f53c547c749563f4e634ebc34aafdf077d94df14924ce482908aa7f490368ef
MD5 c4437849fde4e23d4512614d5186f528
BLAKE2b-256 5e6917cfda00ef219684a8e293c12572e97985a7e32944d0bad422244dc08f7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page