Mastering JSON Parsing In Rust: Key Cases And Edge Scenarios
Preparing for my Rust presentation tomorrow! Main cases: reading arbitrary JSON files, plain arrays, single-level objects, defining fields, handling extra fields & invalid field names.
Tomorrow I am going to give a presentation about "Reading and parsing JSON in Rust". As a last minute preparation I'd like to go over the main cases I need to cover. Maybe some of my readers will have ideas what else to show. ❓ What is JSON❓ 🎃 Reading an arbitrary JSON file without knowing it internal structure. Regardless if the main element is an object or an array. (a mapping or a list) 🤖 Reading a JSON which is a plain array of values. 👹 Reading a JSON which a single level object, key-value pairs of arbitrary values of some known type. e.g string-string pairs or string-number pairs....