Skip to content

Commit cd7a404

Browse files
committed
fixed
1 parent dbbfc0c commit cd7a404

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rjsonc"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -13,5 +13,4 @@ anyhow = "1.0.98"
1313
ijson = "0.1.4"
1414
pyo3 = { version = "0.24.0", features = ["anyhow"] }
1515
serde = "1.0.219"
16-
serde_json = "1.0.140"
1716
serde_json5 = "0.2.1"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use ijson::{ IValue, ValueType };
55

66
#[pyfunction]
77
fn loads_str(py: Python<'_>, json: &str) -> Result<Py<PyAny>> {
8-
let value: IValue = serde_json::from_str(json).context("ijson::IValue extraction")?;
8+
let value: IValue = serde_json5::from_str(json).context("ijson::IValue extraction")?;
99
Ok(get_py(py, value)?)
1010
}
1111

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import rjsonc
22

33
JSON = """{
4-
"name": "John Dough", // now that's action packed
4+
name: "John Dough", // now that's action packed
55
"age": 69,
66
/*
77

0 commit comments

Comments
 (0)