JairusSW / as-json

The only JSON library you'll need for AssemblyScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to parse with whitespace after comma

madmod opened this issue · comments

JSON like the following will fail to parse:

{"stuff":"hi", "things":42}

The space after the comma causes the error:

Key does not exist; file: ~lib/map.ts, line: 105, col: 17

@madmod, fixed. Let me know if it works! Updated it on NPM

I applied a temporary fix to it, but I might be able to figure out a more performant way of removing whitespace later. Please close this if it works!

@JairusSW With the latest version I get an error about not having as-console. I think it might have something to do with using a relative path to node_modules in the import. I made a fork and tried "as-console/assembly/wasi" but it gives ERROR TS6054: File '~lib/as-console/assembly/wasi.ts' not found. when I try to build it.

@madmod,, Oh, i'm sorry. My bad

I fixed the problem. Sorry about that!

No worries! Thanks for the fast fix! Works great!

Awesome :)