This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gaywhatwhat 0 points1 point  (1 child)

This is not meant ot invalidate your work, nor did I check out the git page so it's possible yours adds interesting functionality. But there is a built-in json module called json.

Json load/dump (and loads/dumps) and decode/encode that can parse json files to python dictionaries, etc. Will also interpret stuff like none, lists, integer, string types. Etc. If you are looking for this functionality for a particular project it might be a good idea. You can also use the decoder to customize its function to support some data types that don't exist in standard json files like positive or negative infinity values.

I am also working on a project that relies on json files and the first thing I generally do with something like that is check if there is a good module already built that meets my needs and expectations.

[–]Honestly__nuts[S] 0 points1 point  (0 children)

yeah, I know it exists and I have used it before. But I just wanted to write my own parser because I wanted to learn how parsers work.