Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON.parsefile does not read entire file #316

Closed
jakewilliami opened this issue Jan 20, 2021 · 3 comments
Closed

JSON.parsefile does not read entire file #316

jakewilliami opened this issue Jan 20, 2021 · 3 comments

Comments

@jakewilliami
Copy link

Hi, I haven't done very much debugging yet sorry, but I am trying to read this file, but it is reading two fewer elements than is in the file.

@KristofferC
Copy link
Member

KristofferC commented Jan 20, 2021

You have duplicated dictionary keys, for example "CSS".

@jakewilliami
Copy link
Author

jakewilliami commented Jan 20, 2021

@KristofferC I noticed that after submitting the issue, sorry. This means there is only one element missing.

I am having trouble finding the culprit, but here are the obtained keys from the JSON file, using respectively JSON and LazyJSON:

json = ["JAVA", "C", "PERL", "JULIA", "AWK", "NORM", "ITRED", "ASSEMBLY", "SED", "OBJECTIVEC", "BRED", "BATCHFILE", "YACC", "OBJECTIVECPP", "CPP", "TEX", "RUST", "SHELL", "ITYELLOW", "GO", "DULL", "SCHEME", "DARKBBLUE", "PHP", "COMMONLISP", "LISP", "CSS", "SMPL", "HASKELL", "CSHARP", "PYTHON", "LEX", "EMACSLISP", "ELIXIR", "TEXT", "COFFEESCRIPT", "ULINE", "IT", "POWERSHELL", "D", "BGREEN", "FSHARP", "LUA", "DTRACE", "OCAML", "FLASHING", "MARKDOWN", "CUDA", "ERLANG", "MAKEFILE", "BWHITE", "SWIFT", "JAVASCRIPT", "TYPESCRIPT", "ITWHITE", "RUBY", "MATLAB", "BYELLOW", "HTML", "ROFF", "BBLUE", "R"]

lazyjson = ["BGREEN", "ULINE", "IT", "DULL", "FLASHING", "BWHITE", "ITWHITE", "BYELLOW", "ITYELLOW", "BRED", "ITRED", "BBLUE", "DARKBBLUE", "NORM", "JULIA", "PYTHON", "JAVA", "RUST", "HASKELL", "SHELL", "PERL", "RUBY", "ELIXIR", "COMMONLISP", "LISP", "EMACSLISP", "LUA", "C", "CPP", "CSHARP", "R", "JAVASCRIPT", "BATCHFILE", "TEX", "TEXT", "MARKDOWN", "OBJECTIVEC", "ASSEMBLY", "ROFF", "MAKEFILE", "SWIFT", "YACC", "DTRACE", "AWK", "SMPL", "SED", "LEX", "D", "COFFEESCRIPT", "ERLANG", "HTML", "GO", "SCHEME", "TYPESCRIPT", "POWERSHELL", "PHP", "DTRACE", "CSS", "FSHARP", "MATLAB", "CUDA", "OCAML", "OBJECTIVECPP"]

@jakewilliami
Copy link
Author

Ohh, I think I have another duplicate entry: "DTRACE". Sorry about this guys...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants