JairusSW / as-json

The only JSON library you'll need for AssemblyScript. SIMD enabled
MIT License
79 stars 15 forks source link

How is invalid/non-well-formed JSON handled while parsing #9

Closed trieloff closed 1 year ago

trieloff commented 3 years ago

Great to see another JSON parser for AssemblyScript. When dealing with JSON from external sources, it would be great to have some examples to see how erroneous JSON is handled. In particular:

trieloff commented 3 years ago

See also: https://github.com/near/assemblyscript-json/issues/225 – similar problem there

JairusSW commented 3 years ago

Ah, yes. I'm going to try to do this. I'll get back as soon as its done! 😄

JairusSW commented 1 year ago

Maybe using a https://github.com/MaxGraey/as-option here or implement rust-like Result<T>?