# Read JSON file using from_reader to a struct

```
cargo run ../person.json
```

{% embed include file="src/examples/json/read-json-from-reader-to-struct/data.json" %}

{% embed include file="src/examples/json/read-json-from-reader-to-struct/src/main.rs" %}

{% embed include file="src/examples/json/read-json-from-reader-to-struct/out.out" %}

{% embed include file="src/examples/json/read-json-from-reader-to-struct/Cargo.toml" %}



