cloudwego / cloudwego/sonic-rs

Align StreamDeserializer with serde_json

Open
#202 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
920
Forks
68
Avg merge
2h 5m
Merged PRs (30d)
1

Description

Would be nice to have the exact same API for StreamDeserializer as serde_json, currently missing these two methods:
```rust
/// Create a JSON stream deserializer from one of the possible serde_json input sources.
pub fn new(read: R) -> Self
/// Returns the number of bytes so far deserialized into a successful T.
pub fn byte_offset(&self) -> usize
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.