Parsing JSON in Rust using serde and reqwest

preview_player
Показать описание
Today we will be discussing how to parse JSON in Rust using serde and reqwest!

📝Get your FREE Rust cheat sheet :

Рекомендации по теме
Комментарии
Автор

It isn't really tokio that lets you use the async await syntax. But it is the most commonly used wrapper around the machinery that rust expects when encountering them.

MasterHigure
Автор

Thank you! I’ve been struggling with this problem for far too long because the examples in the reqwest docs are incomplete fragments 😫

johnlombardo
Автор

Funny timing that you release this now, I'm starting a project at work to incorporate Rust into my workplace's C++ codebase, and the task I'm doing to prove its worth is replacing (one of) our json format parsers with serde (and binding with cxx).

So far, with very little work Serde does the same work (or better) than rapidjson in 2/3 the time, and that's with buffered input, if I read the whole file to a string first (no networking stuff, all local) it's 10x as fast. In either case it's looking to be a strong win for Rust.

alextrotta
Автор

This is a good video for anybody trying to create a JSON over HTTP (REST) client.

jaysistar
Автор

One of the things that's tripped me up using Rust is the concept of unwrapping. Would love to see a video explaining it all

TheRealFallenDemon
Автор

This video is worth it's weight in gold.

Dygear
Автор

I think code reviews similar to what the Cherno does for c++ could be a pretty interesting addition to your current content

oxey_
Автор

Awesome video!
Is there any video linking Rust to a sql database?
I’m watching the language book series and haven’t finished it yet rs

kevinpiovezan
Автор

If it would cover some error handling like running another function if the request fails it would be perfect.

tobi
Автор

What VScode extensions do you have? I like the generated text next to some of the code statements showing the result value type.

harrynewton
Автор

What if i have error response and success response, how would i go about that?

mrlectus
Автор

Excellent content and very easy to follow. Thanks for the tutorial!!!

achuthansajeevan
Автор

How to get the response status code, headers ...?
If we try to json-deserialize a non-json string to a struct, will the library give us a Result or the app will panic?
I guess that the issue with a lot of Rust crates are lack of documentation.

avalagum
Автор

I have request each return a different response (different variables) how can I make structs for this kind of response ?

saeed-ahmed
Автор

Aewsome video! I was looking for something like this. thank you

sergiuoanes
Автор

Been looking for a video JUST like this. Thank you, very helpful 👍

ragy
Автор

What if the struct of the get response is variable?

Franx
Автор

u have an amazing teaching skill buddy !! u made rust so simple !!

bjugdbjk
Автор

Awesome! Can you do a websocket client?

awlc
Автор

how to access key values from arbitrary json ?

sagarbarai