Get the latest tech news
Parsing JSON in 500 lines of Rust
Finally sitting down to learn Rust and how to write parsers.
It's a flexible method that is not bound to very strict rules or implemenation details, allowing me to make changes easily. Another thing to note is that parsing is a process that can fail - the source text may have syntax errors and the parser should be able to handle them. This is a simple way to represent numbers in Rust, but it does not support the full arbitrary precision that JSON allows.
Or read this on Hacker News