serde-json-core icon indicating copy to clipboard operation
serde-json-core copied to clipboard

`serde-json` for `no_std` programs

Results 18 serde-json-core issues
Sort by recently updated
recently updated
newest added
trafficstars

`serde_json_core` needs to refuse deserializing a borrowed string with escape sequences. `serde_json_core::from_slice::(br#""\n""#)` incorrectly gives `Ok(("\\n", 4))`. `serde_json::from_slice::(br#""\n""#)` correctly says `Error("invalid type: string \"\\n\", expected a borrowed string", line: 1, column:...

Here's a partial implementation of the design suggested in https://github.com/rust-embedded-community/serde-json-core/issues/79#issuecomment-2053622260_ > How about the following design?: > > - The deserializer takes a shared &str, as per the design before...

## Goal Being able to completely ignore a field in a JSON string in a `no_std` and `no_alloc` environment with the `serde_json_core` crate. The JSON processed may be of two...

To match the behavior of serde_json: https://serde.rs/container-attrs.html#deny_unknown_fields

bug

This results in the serde trait implementations being available when using the `serde_json_core::heapless` re-exports.

I'm getting a panic in `impl de::Error for Error` when the feature `custom-error-messages` is enabled https://github.com/rust-embedded-community/serde-json-core/blob/ca6745785c6d315d532170a33bff826377c693c9/src/de/mod.rs#L765-L784 The panic occurs on the line: `write!(string, "{:.64}", msg).unwrap()` when it tries to format...

Currently, escaping strings during serialization is not yet implemented (or at least the main README docs claim this). This would be nice to have from a user perspective.

enhancement
good first issue