Skip to content
Discussion options

You must be logged in to vote

This has been since added and will work in next releases although a little differently. Previously this returned None for example when there was different Content-Type or if the json itself was malformed, this will now error out and just empty bodies without declared content type will return None.

If you want the old behavior and for now you can use Result<Json<T>, _>.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jplatte
Comment options

Answer selected by Turbo87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants