json5-rs icon indicating copy to clipboard operation
json5-rs copied to clipboard

A Rust JSON5 serializer and deserializer which speaks Serde.

Results 31 json5-rs issues
Sort by recently updated
recently updated
newest added

Pls add support to serialize [u8] and other arrays

We should be able to specify the style to be used for serializing. Such as: - trailing commas? - how much indentation? - whitespace? - single quotes or double? -...

Comparing parsing performance between json5-rs & serde_json we see that it can take 50% longer to parse with json5-rs. Is there a plan to handle it?

# Description * Contrary to recommendations of the spec, the Unicode code points U+2028 and U+2029 are not escaped upon serialization. See [Section 5.2](https://spec.json5.org/#separators) of the specification. * Deserialization fails...

Fixes the other half of #25. By having a custom key deserializer, we can specially treat calls like `deserialize_i32` on the key `"0"` as an integer.

- The `itoa` and `ryu` crates (the same crates `serde_json` uses) avoid allocating anything when serializing integers and floats. - By switching the code to work on bytes instead of...

Non-string keys should not be allowed, so a custom serializer is used for that. Resolves one of the problems in #25.