Skip to content

sassmilic/JSON-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

JSON-Parser

A JSON parser with informative error messages

The motivation for this script came when I was dealing with a large JSON file (a TinyDB) that wasn't properly formatted. When loading a JSON you typically get an error like: "there's a problem with column 267,635", which isn't very informative. I wrote this script to better pinpoint the problem.

NOTE: Very minimal testing has been done (see doctests). Use with caution :)

<breadcrumb/>

TODO

  • completely refactor to use a stack
  • related to above: read one character from file at a time; no loading entire file to memory
  • migrate tests from docstrings to seperate file

About

A JSON parser with informative error messages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages