james on Nostr: [learning Rust] Something I am realizing right now is that if I am to start using ...
[learning Rust]
Something I am realizing right now is that if I am to start using Rust for my web apps, I am going to have to be pretty careful about JSON ingest, specifically handling `NULL`s and other ambiguous typing that comes with many APIs.
When I get JSON data and parse it, I need the data to be very well organized, properly typed, and predictable.
Q: For those who are Rust devs (especially those of you who use Yew+Wasm), when you receive JSON into your application do you usually parse first into a JSON struct/enum first to sanitize then construct your target or do you parse directly into your target strct/enum?
#askNostr #Rust #webDev
Something I am realizing right now is that if I am to start using Rust for my web apps, I am going to have to be pretty careful about JSON ingest, specifically handling `NULL`s and other ambiguous typing that comes with many APIs.
When I get JSON data and parse it, I need the data to be very well organized, properly typed, and predictable.
Q: For those who are Rust devs (especially those of you who use Yew+Wasm), when you receive JSON into your application do you usually parse first into a JSON struct/enum first to sanitize then construct your target or do you parse directly into your target strct/enum?
#askNostr #Rust #webDev