Hi,
I'm encountering an issue when using jsonrpsee::http_client::HttpClient to fetch large JSON responses that contain deeply nested structures. Currently, it seems impossible to handle these cases properly because the client internally relies on serde_json.
Since there’s no way to plug in a custom deserializer or configure serde_json to lift this restriction I’ve forked the repo and implemented a patch that disables the recursion limit. You can view the patch here: master...klefevre:jsonrpsee:master
This modification solves the issue for my use case, and I’d be happy to open a proper PR to contribute this upstream. However, I’m unsure about the best way to opt-in this feature.
I’d appreciate your guidance on how this should be integrated to align with the design and ergonomics of the project.
Best,
Hi,
I'm encountering an issue when using
jsonrpsee::http_client::HttpClientto fetch large JSON responses that contain deeply nested structures. Currently, it seems impossible to handle these cases properly because the client internally relies onserde_json.Since there’s no way to plug in a custom deserializer or configure
serde_jsonto lift this restriction I’ve forked the repo and implemented a patch that disables the recursion limit. You can view the patch here: master...klefevre:jsonrpsee:masterThis modification solves the issue for my use case, and I’d be happy to open a proper PR to contribute this upstream. However, I’m unsure about the best way to opt-in this feature.
I’d appreciate your guidance on how this should be integrated to align with the design and ergonomics of the project.
Best,